CentOS 7.5 installs mysql5.7.24 binary package deployment (maintained + master-slave replication)

I. environmental preparation: Operating system: CentOS Linux release 7.5.1804 (Core) MySQL version: mysql-5.7.24-linux-glibc2.12-x86_.tar.gzMain warehouse: 172.16.8.247Slave Library: 172.16.8.249Host name:172.16.8.247 qas-zabbix-node01172.16.8.249 qas-zabbix-node02172.16.8.248 vip 2. mysql5.7 installation and master-slave replication configur ...

Posted by Xurion on Sat, 07 Dec 2019 21:09:55 -0800

If the php script execution process does not exit within 30 minutes, kill these php script processes

The online script content is as follows:[root@localhost ~]# cat /data/scripts/check_php.sh #!/bin/bash Date=`date "+%Y-%m-%d %H:%M:%S"` Num=$(ps -ef|egrep "countjs_syc_site*|countjs_syc_plan*|countjs_syc.php|countjs_syc_img*|setcache*"|grep -v grep |wc -l) Pid=$(/bin/ps -ef|egrep "countjs_syc_site*|countjs_syc_plan*|countjs_syc.php|countjs_ ...

Posted by billf2007 on Sat, 07 Dec 2019 18:48:28 -0800

Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29)

>Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you!>Original link address: Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29) Last time, the swarm cluster environment has been set up. There are three virtual machines, server01, server0 ...

Posted by aclees86 on Sat, 07 Dec 2019 18:12:34 -0800

Summary of Chapter 3 of UNIX Linux programming practice course

Under Linux, everything is a file, so the directory is only a special file. It can be opened, read, and close just like the file, but the function is changed to opendir(),readdir(),closedir() Data structure used to read directory file -- struct directory #include <dirent.h> struct dirent { ino_t d_ino; /* Ino ...

Posted by akufen on Sat, 07 Dec 2019 17:00:31 -0800

CentOS7 modifying the network card name eth0

CentOS7 modifying the network card name eth0 The centos7 virtual machine I installed in VMWare workstation has two network cards. The default network card names are eno16777736 and eno33554984 [root@controller ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1     link/loopback 00:00:00:00:00:00 brd 00: ...

Posted by kodstationen on Sat, 07 Dec 2019 09:47:01 -0800

dlfcn library related learning in Linux

Blog move, original address: Learning dl Library in https://langzi989.github.io/2017/10/16/Unix/ In Linux, static link library and dynamic link library are two ways of code sharing between processes. Linux provides system calls to load and process dynamic connection libraries in the < dlfnc. H > library, which is very conv ...

Posted by CloudSex13 on Sat, 07 Dec 2019 08:07:01 -0800

Building a Load Balancing Cluster Based on Address Translation (LVS-NAT) Mode

This post is a case post. For an overview of the principles and related overviews of LVS Load Balancing Clusters, please refer to the post: LVS Load Balancing Cluster for Centos 7 1. Introduction to Cases 1. Case Environment 2. Experimental results Using NAT-mode clustering technology, the LVS load dispatcher is a gateway server where all ...

Posted by scottreid1974 on Sat, 07 Dec 2019 03:02:18 -0800

DR mode of LVS load balancing cluster deployment

I. working principle of DR mode          As shown in the figure, the working principle of LVS-DR has been explained in the figure. Let's list the characteristics of LVS-DR mode: 1. RIP can use private address or public network address. If public network address is used, RIP can be accessed directly. 2. All requested packets must pass through ...

Posted by KC_Geek on Fri, 06 Dec 2019 16:53:46 -0800

Practice: shell programming practice

Preface mac record and port scan script Develop system monitoring script I. sharing of script programming steps 1.1 script programming steps 1.2 demand analysis According to the requirements of system management, the functions, levels, commands and statements of the script are analyzed 1.3 command test Test the commands to be used one by ...

Posted by ro1960 on Fri, 06 Dec 2019 16:35:11 -0800

jenkins triggers the automatic construction of docker image, uploads it to harbor and publishes it

I. making Dockerfile file 1. Deploy on 172.19.2.51 mkdir -pv /opt/git git clone http://172.19.2.140:18080/lvqingshan/gcgj.git cd /opt/git/gcgj scp app@172.19.2.1:/home/app/portal-tomcat/webapps/portal.war ./ scp app@192.168.37.34:/home/app/portal-tomcat/conf/server.xml ./ vim Dockerfile FROM tomcat:7.0.77-jre8 ADD server.xml /usr/local/tomcat ...

Posted by Valect on Fri, 06 Dec 2019 15:07:19 -0800