Automatic redirection from http to http by nginx service under Linux

1. Realize automatic jump to http://bbs.westos.org when accessing http://xin.westos.org/bbs//   (1) Firstly, a virtual host is configured and tested to ensure that the configured virtual host is correct. [root@server1 ~]# vim /usr/local/nginx/conf/nginx.conf #Write the following server module in the http module (write 151-159 ...

Posted by Chapel on Fri, 26 Apr 2019 06:24:35 -0700

K8s Exposure to Internal Services in Various Ways

hostNetWork:true Test yaml: apiVersion: v1 kind: Pod metadata: name: nginx-hostnetwork spec: hostNetwork: true containers: - name: nginx-hostnetwork image: nginx:1.7.9 # Create pod s and test them $ kubectl create -f nginx-hostnetwork.yaml $ kubectl get pod --all-namespaces -o=wide | grep nginx-hostnetwork default ...

Posted by phpr0ck5 on Wed, 24 Apr 2019 17:39:34 -0700

Machine Learning (Zhou Zhihua) Watermelon Book Chapter 7 Exercise 7.3—— Python Implementation

Machine Learning (Zhou Zhihua) Watermelon Book Chapter 7 Exercise 7.3-Python Implementation Experimental topics Laplacian modified naive Bayesian classifier is implemented by trial programming. The watermelon data set 3.0A is used as training set to discriminate P.151 "test 1" samples. Experimental principl ...

Posted by dkphp2 on Mon, 22 Apr 2019 18:12:34 -0700

Solr Quick Start

Summary This document describes how to obtain and run Solr, collect various data sources into multiple collections, and understand the Solr management and search interface. First, unzip the Solr version and change the working directory to a subdirectory where Solr is installed. Note that the base directory name may vary with the version Solr ...

Posted by jlh3590 on Sun, 21 Apr 2019 15:45:34 -0700

kubeadm installs a cluster of master node s

Installing master node using kubeadm 1. Basic configuration preparation # swapoff - Close swap swapoff -a sed -ri "/swap/s@(.*)@#/&@g" /etc/fstab # Firewall limit - Open default iptables rules echo -e "net.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1" >> ...

Posted by Octave91 on Fri, 19 Apr 2019 16:12:36 -0700

flask source parsing: session

This is one of the articles in the flask Source Parsing series, a list of all articles in this series: flask Source Parsing: Brief Introduction flask source code parsing: application startup process flask source parsing: routing flask source parsing: context flask source parsing: request flask source parsing: response flask source parsing: ses ...

Posted by doofystyle on Sat, 13 Apr 2019 23:21:32 -0700

Detailed Explanation of Apache's Common Functions

Apache is a web server with the highest usage. A in LAMP refers to it. Because of its open source, stability, security and other characteristics, it is widely used. The previous article has documented how to build a LAMP architecture, which is only the first step. Apache service is the most important one, and it is also the core of LAMP. The ...

Posted by pelegk2 on Fri, 12 Apr 2019 22:24:33 -0700

CentOS 7 Enables Remote Connection and Uses Client Connections such as Posgis

Set remote access, allow class B 192.168.0.0/16 segment access, and set listen_addresses ='*'. The database server is 192.168.126.128. #Modify configuration files [root@promote ~]# vim /var/lib/pgsql/11/data/pg_hba.conf #View Modification Completion Profile [root@promote ~]# egrep -v "^#|^$" /var/lib/pgsql/11/data/pg_hba.conf local all ...

Posted by SergiuGothic on Fri, 12 Apr 2019 15:54:32 -0700

Running XtraDB Cluster in Multi-Host Docker Network

Translator's Preface XtraDB maintained by Percona is a branch of mysql. It uses xtrodb driver with better performance than innodb. XtraDB-Cluster product is its clustering scheme. Please google the content of the scheme. The recent launch of XtraDB-Cluster version 5.7 has kept pace with the main branch of mysql, attracting more MySQL enthusiast ...

Posted by B0b on Mon, 08 Apr 2019 16:24:31 -0700

Solution of CURL parsing timeout

Background: In a project, it is necessary to upload CRM images to OSS and call OssClient.php, which is prone to parse timeouts (ok if you try several times). Error prompt: [2019-04-08 19:41:01] lumen.DEBUG: Error file:/home/zrj/www/admin/yundou-admin/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php [2019-04-08 19:41:01] lumen.DEBUG: Error ...

Posted by nrg_alpha on Mon, 08 Apr 2019 16:09:31 -0700