Vim Basic Configuration

Vim is a powerful editor, which can even rival IDE with the help of various plug-ins, but it can not rely too much on various plug-ins and forget the original functions and operations of Vim. Vim itself is very powerful, learning curve is very tortuous, we need to learn slowly, more use. Vim itself has many configuration options, which can be c ...

Added by AshtrayWaterloo on Fri, 21 Jun 2019 00:44:56 +0300

redis master-slave replication process and implementation of master-slave replication

1. The process of redis master-slave replication synchronization 1. Send a sync synchronization command from the service to the primary service to require full synchronization 2. When the primary service receives sync synchronization commands from the service, a subprocess of fork executes bgsave command (non-blocking) snapshot saving in the ...

Added by viveleroi0 on Sat, 15 Jun 2019 20:11:18 +0300

Explanation and application of python argparse Library

argparse is a library for parsing command-line options, parameters, and subcommands     Source code comes from Lib/argparse.py   Main functions: 1. Make it easy for users to write command lines 2. argparse knows how to parse these parameters from sys.argv for the parameters required by the program. 3. Aiming at the invalid parameters given to t ...

Added by lrdaramis on Sat, 15 Jun 2019 03:40:23 +0300

05.08 Full Network Backup Project Description

Chapter 1 Introduction of Network-wide Backup Project Summarize, backup and save all important data on all servers in the whole network architecture! Automation: Automatic Backup of Data Information Normalization: avoid backup data errors Chapter II Implementation Process of Network-wide Backup Project 1. Plan and define the backup se ...

Added by spartan7 on Fri, 14 Jun 2019 00:40:52 +0300

Vim Skills Training Course (12) - Vim's scripting language support

Vim scripting language support At the beginning of this section, we are officially exposed to vimscript, an ancient scripting language. First of all, there are many extensions supported by vim, such as python, Python 3, ruby, lua, TCL and other common scripting languages. It can support scripts embedded in. vimrc or execute files in scripting l ...

Added by objNoob on Thu, 13 Jun 2019 23:08:10 +0300

Set up web services to implement multiple virtual hosts. Host/user based access control

content 1. Set up web services to implement multiple virtual hosts 2. Host-based access control 3. User-based access control 1. Set up web services to implement multiple virtual hosts www.xiaoming.com RHEL6 httpd-2.2.15 RHEL7 httpd-2.4.6- The key configurations are as follows: To use the virtual host feature, you need to turn on ...

Added by Rianna on Wed, 12 Jun 2019 19:22:11 +0300

Load Balancing haproxy+keepalived, lvs+keepalived backend php+nginx framework

101,102 Machines haproxy settings 1. Unzip the file and enter the unzipped folder tar xvf haproxy-1.9.8.tar.gz cd haproxy-1.9.8 2. Compile and install haproxy, compile parameters make ARCH=x86_64 TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_SYSTEMD=1 USE_CPU_AFFINITY=1 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/h ...

Added by double-f on Mon, 10 Jun 2019 20:38:52 +0300

Training Note _ch13_Use Bind to Provide Domain Name Resolution Service

Training Note _ch13_Use Bind to Provide Domain Name Resolution Service At the end of the article, you will post your notebook photos. The main contents of the article are as follows: DNS domain name resolution service Install and deploy the Bind service program Deployment of slave servers Secure Encrypted Transmission Deployment of Cac ...

Added by oscardog on Sun, 09 Jun 2019 00:04:02 +0300

How to mount disks on Linux

When you use the virtual machine, you find that there is not enough disk space and you need to mount a disk for continued use, but the disk is not added for use and you need to mount it. 1. Add Disks Add a new hard drive to restart the server After adding, you can restart the machine. If your machine is on, you can't see the disk you ju ...

Added by kybaker on Sat, 08 Jun 2019 21:23:23 +0300

Stupid Ways to Learn Linux 8-11

Exercise 8: More redirection and filtering: head, tail, awk, grep, sed Original text: Exercise 8. Bash: more on redirection and filtering: head, tail, awk, grep, sed Translator: Flying dragon Agreement: CC BY-NC-SA 4.0 Take pride in adopting Google translation Now that you've tried Linux, I'll show you how Unix works. Wat ...

Added by anth0ny on Fri, 31 May 2019 23:09:06 +0300