K8s creates resources using YAML files

Due to the popularity of K8s technology, enterprises of all sizes are using it now. Although it is not popularized, I believe it will happen sooner or later, so hurry up and learn more! There are two ways to create resources in K8s: command line and YAML file. This blog mainly introduces the ways to use YAML file. If you need to use command li ...

Posted by pranesh on Tue, 07 Jan 2020 09:37:56 -0800

Learning Notes: docker deploys highly available MySQL clusters

Learning Notes: docker deploys highly available MySQL clusters Environmental Science CentOS 7.5 (IP:106.xx.xx.xx) Docker 18.06.0-ce 1. docker settings # Define Subnets docker network create --subnet=172.18.0.0/16 net1 2. mysql Cluster (5) Using the Percona-XtraDB-Cluster scheme Connect 106.xx.xx.xx:30001-3000 ...

Posted by jauson on Tue, 07 Jan 2020 09:35:31 -0800

Nginx installation, reverse proxy implementation, and in-depth optimization

I. Installation of NginxOn the basic concepts of Nginx, in previous blogs: https://blog.51cto.com/14227204/2464167With a detailed introduction, this blog post starts directly from the installation. Environmental preparation: Three centos 7.5, one running Nginx and two running simple web services, are designed to test the effectiveness of the ...

Posted by ohenewa on Tue, 07 Jan 2020 00:29:46 -0800

Build lnmp+wordpress environment

Question Summary Nginx section Essential Library yum install -y wget vim gcc gcc-c++ zlib-devel pcre-devel openssl-devel Compile Options ./configure --with-http_stub_status_module --prefix=/data/wwwroot/nginx-1.17.1 --user=www --group=www --with-http_ssl_module Matters needing attention To be added start-up .../sbin/nginx Common Errors To be a ...

Posted by trink on Mon, 06 Jan 2020 14:30:06 -0800

Linux system sets nginx to boot automatically

Linux sets nginx to boot automatically First, create nginx startup script file under / etc/init.d cd /etc/init.d/ vim nginx Write the following code in the created nginx startup script file #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is ...

Posted by gus on Mon, 06 Jan 2020 01:09:36 -0800

saltstack automatic deployment nginx (source compilation)

Automatic deployment of nginx source code through saltstack Experimental topology Node name IP function server1 172.25.21.1 salt-server server3 172.25.21.3 Salt minion, nginx server The basic configuration of each node will not be described in detail. See my blog for details Saltstack automation manageme ...

Posted by rahulroy on Sun, 05 Jan 2020 21:19:22 -0800

nginx jump with parameters

//Original link: https://www.baidu.com/benefit_detail?slug=bankofchina-20170320 //Target link: https://www.test.cn/boc location ~ /benefit_detail { if ($args ~* "slug=bankofchina-20170320") { rewrite ^/benefit_detail /boc? permanent; } try_files $uri $uri/ /index.php?$query_string; } Common jump ca ...

Posted by dingus on Sun, 05 Jan 2020 18:42:22 -0800

Nginx Core Configuration Details

1 Global Configuration user nginx nginx; # Users and groups that initiate the nginx worker process, defaulting to nobody worker_processes auto; # Number of nginx worker processes started, default 1 worker_cpu_affinity 0001 0010 0100 1000; #Binding Nginx_as a process to the specified CPU core, the default Nginx is not to bind to the process. Bi ...

Posted by soldbychris on Sun, 05 Jan 2020 05:47:49 -0800

Install nginx Kafka plug-in

Install nginx Kafka plug-in nginx can directly write data into kafka. 1. install git yum install -y git 2. Switch to the directory / usr/local/src, and then clone the c client source code of kafka to local cd /usr/local/src git clone https://github.com/edenhill/librdkafka 3. Enter librdkafka and compile ...

Posted by KevinMG on Sat, 04 Jan 2020 23:44:35 -0800

nginx learning nine upstream load balancing

grammar Syntax: upstream name {...} Default:-- Context:http   Status of backend server in load balancing scheduling: down The current server does not participate in load balancing temporarily backup Reserved backup server max_fails Number of requests allowed to fail fail_timeout Service pa ...

Posted by zavin on Sat, 04 Jan 2020 14:54:52 -0800