Summary of mysql8.x single machine installation

1. Download the mysql installation package, extract the installation file, and change the name to mysql wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.13-linux-glibc2.12-x86_64.tar.xz 2. Create data directory in mysql folder mkdir data 3. Create mysql user group and mysql user groupadd mysql useradd -g mysql mysql 4. Change ...

Posted by shellyrobson on Thu, 12 Dec 2019 15:22:48 +0100

Squid proxy application (traditional and transparent)

Experimental schematic diagram Step 1: configure the squid proxy server #Remote share and mount source package [root@squid ~]# smbclient -L //192.168.142.1 [root@squid ~]# mount.cifs //192.168.142.1/squid /mnt #Decompress the source package [root@squid ~]# cd /mnt [root@squid mnt]# tar zxvf squid-3.4.6.tar.gz -C /opt #Install build environm ...

Posted by dinku33 on Tue, 10 Dec 2019 11:39:51 +0100

Theory + practice: FTP service details optimization, creating virtual users

Set up FTP service One: install ftp service 1.1 mount image file Install vsftpd package 1.2 yum warehouse can also be used [root@localhost ~]# yum install vsftpd-sysvinit.x86_64 -y Installed: vsftpd-sysvinit.x86_64 0:3.0.2-25.el7 Complete! 1.3 related file path [root@localhost ~]# cd /etc/vsftpd/ [root@lo ...

Posted by barnbuster on Mon, 09 Dec 2019 17:12:33 +0100

pod health examination for k8s detection mechanism

One: Source of demand: First, let's look at the source of the entire need: how do you ensure the health and stability of your app when it's migrated to Kubernetes?In fact, it is very simple and can be enhanced in two ways: 1. First, improve the observability of the application;2, the second is to improve the resilience of the application. Obse ...

Posted by Zmodem on Mon, 09 Dec 2019 10:28:44 +0100

Application Policy Rules for k8s Autonomous pod

Autonomous pod application Most of the pods we come into contact with are controller-controlled pods, so today we are talking about autonomous pods (that is, pods created by yaml files), which are pods that control themselves and prevent them from being killed by the controller. 1. First, let's create a pod resource object for nginx: Before cr ...

Posted by Mijii on Sun, 08 Dec 2019 18:08:37 +0100

Nginx access log and cutting, static files do not record log and set expiration time

Nginx access log View the current log format in the main profile Search log? Format [root@test-a /]# cd /usr/local/nginx/ [root@test-a nginx]# vim conf/nginx.conf include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 3526; server_names_hash_max_size 4096; log_format combined_realip '$remote_addr $http_x_forwa ...

Posted by plus2net on Sun, 08 Dec 2019 00:34:19 +0100

Teach you how to easily deploy squid forward agent in 5 minutes

The forward proxy is a server between the client and the original server. In order to obtain content from the original server, the client sends a request to the proxy and specifies the target (the original server), and then the proxy delivers the request to the original server and returns the obtained content to the client. The client can use ...

Posted by kael.shipman on Fri, 06 Dec 2019 10:53:38 +0100

CentOS 7 Shell Scripting Lecture 10 if statement

Let's start with a simple script. First, remember that if and fi appear in pairs. #Expression statement structure if <Conditional expression> ;then //instructions fi #Upper and lower statements are equivalent if <Conditional expression> then //instructions fi #Judge whether the input is yes, no other input operation ...

Posted by himnbandit on Thu, 05 Dec 2019 12:51:16 +0100

Deploy LVS-DR and preserved cluster (actual combat!!!)

keepalived overview The function of Keepalived is to detect the state of the server. If a web server goes down or fails to work, Keepalived will detect it and remove the failed server from the system. At the same time, other servers will be used to replace the server's work. When the server works normally, Keepalived will automatically add the ...

Posted by papa on Wed, 04 Dec 2019 11:14:07 +0100

docker installs ElasticSearch (version 6.x)

Install ElasticSearch Pull the image and select version 6.5.0 $ docker pull elasticsearch:6.5.0 View mirroring $ docker images Start a container $ docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 elasticsearch:6.5.0 42d639a089348b393b0cc912141ef357b6565996c5c4863e363f8729da229d7d Then visit GE ...

Posted by mrbaseball34 on Wed, 04 Dec 2019 08:46:25 +0100