mysql master-slave replication, add new slave server

Master-slave replication, adding slave servers Three mysql servers. One is the master and one is the slave, realizing automatic backup. Add a new slave server System: CentOS 7.6 mariadb: 5.5.60 Primary server: [root@Centos7 ~]#vim /etc/my.cnf [mysqld] server_id=7 #Set server ID log_bin #Open binary log Start mysql, View b ...

Posted by imcomguy on Fri, 15 Nov 2019 07:20:30 -0800

Theory: linux system security and Application

Mainly from account security control, system guidance and login control, weak password detection, port scanning local control to learn I. Basic Measures for account security 1.1 system account cleaning Set the Shell of the non login user to / sbin/nologin Lock account 'usermod -L' not used for a long time Delete useless account 'userdel -r' L ...

Posted by Cetanu on Fri, 15 Nov 2019 04:15:08 -0800

Disable root remote login, use ssh password-free login

Reason Recently, I purchased a new server to get something new. First, I want to achieve password-free login (i.e. user password login). Then, I don't want to use root login, so I searched a lot of data on the Internet, and now summarize some for myself to fumble around in the future._ These are for yourself, don't look for me if you can't un ...

Posted by Mucello on Thu, 14 Nov 2019 18:29:14 -0800

Git Branch Management - Create, Merge, Delete Branches

Preface: Almost all version control supports branching in some way.Using branching means that you can separate your work from the development main line, so as not to affect it. Git's branching model is known as its "must-kill" feature, which makes Git stand out from many version control systems.Git handles branches incredibly lightwe ...

Posted by PURU on Thu, 14 Nov 2019 14:17:44 -0800

Nginx connection timeout, process management optimization (load balancing)

Connection timeout for Nginx In corporate websites, avoid wasting resources by occupying connections with the same customer for a long timeConnection timeout parameters can be set to control connection access time Configure nginx [root@localhost ~]# yum install pcre-devel zlib-devel gcc gcc-c++ -y ##Install Environment Package [root@localh ...

Posted by gibs on Thu, 14 Nov 2019 11:33:25 -0800

Nginx optimization - connection timeout, process management, compression, anti-theft chain

Nginx implementation connection timeout In order to avoid the waste of resources caused by the same customer occupying the connection for a long time in the enterprise website, the corresponding connection timeout parameters can be set to control the connection access time. Viewing connection parameters using the fiddler tool Timeout param ...

Posted by alfoxy on Thu, 14 Nov 2019 09:20:55 -0800

FastDFS picture server stand-alone installation steps (Revision)

As I said before A picture of the network architecture of microservices , through this article, you can understand the stand-alone installation process in FastDFS components. Stand alone architecture The following are the installation steps of FastDFS I. environmental preparation CentOS 7.X libfastcommon Version used: libfastcommon-1.0.41.tar. ...

Posted by kelharis on Wed, 13 Nov 2019 02:00:28 -0800

Regular expressions in Shell scripts

Bowen catalogDefinition of Regular Expression2. Extended Regular Expression Metacharacters3. Text Processor Definition of Regular Expression Regular expressions are also called regular expressions and regular expressions.It is often abbreviated as regex, regexp, or RE in code.Regular expressions are descriptions that use a single string to m ...

Posted by codebuilder on Mon, 11 Nov 2019 11:58:45 -0800

How do I batch rename a set of files on Linux last time?

On Linux, mv commands are commonly used to rename files, which is convenient for renaming individual files.However, if we want to rename a set of files, mv is a bit tired.But that's okay. Today we're going to introduce a useful command for batch renaming, the rename command. Here's how to use the rename command in more detail. Unlike the mv com ...

Posted by youngloopy on Thu, 07 Nov 2019 19:38:49 -0800

RAID 5 for Centos 7 Details and Configuration

1. What is RAID: The full name of the disk array is "Redundant Arrays of Inexpensive Disks, RAID". The English version means: fault-tolerant, inexpensive disk array. RAID can integrate multiple smaller disks into a larger disk device using a single technology (software or hardware); this larger disk function is more than storage; i ...

Posted by kedarnath on Thu, 07 Nov 2019 13:03:26 -0800