Linux DNS master-slave replication
The main purpose of setting up master-slave DNS is to share the pressure and redundancy so as to prevent DNS from being parsed properly after the server goes down.
Configure master
Normally configure DNS services.
Setting Host Name
[root@localhost ~]# hostnamectl set-hostname master
[root@localhost ~]# bash
Install the bind package
[root@ma ...
Posted by Lee-Bartlett on Wed, 09 Oct 2019 11:10:18 +0200
Backup using rsync tools
rsync is a remote and fast incremental backup tool that supports local, ssh and rsync host synchronization.rsync is one of the basic components of the default Linux/Unix system installation, so we don't need to install it manually.
[root@mysql /]# rpm -q rsync
rsync-3.0.9-17.el7.x86_64
rsync programs do not have configuration files, so we need ...
Posted by webwiese on Mon, 07 Oct 2019 00:54:11 +0200
Development and Manufacture of Fireant Mining System APP
SqlHelper.class.php + Fireant Mining System APP develops T:/ I8O.2853.296O V. Vim/Vi has always been the most popular text editor on UNIX/Linux system. Since I came into contact with UNIX in 2001, Vim/Vi has always been my preferred editor for modifying system files and writing simple programs. It is a necessary tool for home travel. How to imp ...
Posted by barneybarney68 on Wed, 02 Oct 2019 05:23:29 +0200
Failed to start nginx.service:unit not found when starting nginx under centos
The reason for the error is that the nginx service was not added, so the startup failed.
Solution:
1. Create a new file named nginx under / root/etc/init.d / directory
Or execute the command in the root directory: vim/etc/init.d/nginx (note that there is a space next to vim)
2. Insert the fol ...
Posted by BZorch on Mon, 30 Sep 2019 15:02:49 +0200
Redis Cluster Deployment and Principle
1. Redis Cluster Architecture Details:
1. All Redis nodes are interconnected with each other (PING-PONG mechanism). Binary protocol is used to prioritize transmission speed and bandwidth.
2. Node failure will take effect only when more than half of the master nodes in the cluster fail to detect.
3. Clie ...
Posted by thomasd1 on Mon, 23 Sep 2019 07:51:42 +0200
Programming and Variables of Shell Scripts (Plus Practical Projects)
The purpose of this chapter is to learn programming specifications, scripting operations and knowledge of variables.
I. Overview of Shell scripts
II. The Role of Shell
Write the first Shell script
1. Write a script (go to the BOOT directory, view the current location, and display all files starting with VML in a long format friendly)
[root@ ...
Posted by mescal on Sun, 22 Sep 2019 10:09:16 +0200
Using Keepalived to Realize Hot Detailed Interpretation of Dual Computer
In this highly informationized IT era, production systems, business operations, sales and support, as well as daily management of enterprises are increasingly dependent on computer information and services. The demand for the application of high availability (HA) technology is constantly increasing in order to provide continuous and uninterrup ...
Posted by Mesden on Wed, 18 Sep 2019 16:11:55 +0200
Detailed description of hot standby configuration file for keepalived dual computers
Configuration example: https://blog.51cto.com/14227204/24389021. The working principle and function of keepalived:
At first, keepalived was a powerful auxiliary tool designed specifically for LVS. It was mainly used to provide fault switching and health checking functions - to judge the availability of LVS load dispatcher and node server, to i ...
Posted by Lphp on Wed, 18 Sep 2019 09:18:31 +0200
MapReduce custom k, partition, and counter
1. Introduction Case - WordCount
Requirement: Statistically output the total number of occurrences of each word in a given set of text files
1. Data format preparation
Create a new file
cd /export/servers
vim wordcount.txt
Put the following ...
Posted by Varma69 on Wed, 11 Sep 2019 13:34:17 +0200
Configuration of golang module in space MCS
Summary
Goang's official package management has been supported since version 1.11. Several attempts have been made before, but the results are not satisfactory, and dep has been used to manage the package.
With the release of version 1.13 recently and the increasing number of official management methods using go module, dep has not been develop ...
Posted by zeeshan_haider000 on Wed, 11 Sep 2019 06:40:29 +0200