Linux-07-scheduled tasks

In Linux, the timing task is executed by crond program. It is started by default after power on like SSH, network, rsyslog and sysstat. By default, crond checks every other minute to see if there are any tasks to perform. If you have special needs, such as executing once a second, you need to write daemons. View the contents o ...

Posted by rascle on Sun, 05 Jan 2020 09:36:49 -0800

Linux-20180914-vmware virtual machine debond

Problem bond binding was done before to restore the entire virtual machine environment to its original state. Solution First, execute the command line in the virtual machine and turn off the network card (using console, once the remote ssh network card is turned off, the network is also broken) # Check which network cards a ...

Posted by bluetonic on Sun, 05 Jan 2020 08:42:06 -0800

Establishment of enterprise level top master and syndic services and horizontal expansion of master##

1. Restore environment: [server1] [root@server1 _modules]# salt-key -L Accepted Keys: server1 server2 server3 server4 Denied Keys: Unaccepted Keys: Rejected Keys: [root@server1 _modules]# salt-key -d server4 The following keys are going to be deleted: Accepted Keys: server4 Proceed? [N/y] y Key for minion server4 deleteed. ...

Posted by switchdoc on Thu, 02 Jan 2020 13:56:13 -0800

Create or delete users in batch under Linux.

Batch create users: 1. Create the list file users.txt of user name, one line for each user. [root@linuxprobe ~]# vim users.txt andy barry carl duke eric ergou Next, write the shell script useradd.sh. [root@linuxprobe ~]# vim useradd.sh #!/bin/bush read -p "Enter The Users Password : " PASSWD for UNAME in `cat users.txt` d ...

Posted by zuhalter223 on Mon, 30 Dec 2019 22:42:52 -0800

centos7 installation jumpserver fortress machine numerous problems detailed explanation (exchange post)

Prepare materials: ip:192.168.220.130 System: centos7 Reference documents: I found a Chinese version that is easy to see http://docs.jumpserver.org/zh/docs/   1. The first two problems are the configuration file is wrong: So I want to put the configuration file here. If I don't want the vi command, it's recommended to c ...

Posted by bachx on Mon, 30 Dec 2019 12:13:21 -0800

Propagate all parameters in bash shell script

I'm writing a very simple script that will call another script and need to propagate parameters from the current script to the executing script. For example, my script name is foo.sh and calls bar.sh foo.sh: bar $1 $2 $3 $4 How do I do this without explicitly specifying each parameter? #1 building #!/usr/bin/env bash while [ " ...

Posted by fallen00sniper on Fri, 27 Dec 2019 11:05:11 -0800

ssh command; key authentication; service management in linux

1.openssh When the openssh service is enabled in the host, the remote connection interface is opened to the public. The service end of openssh service is open to the public, and the remote connection is open to the public sshd ා server software, open an interface for others to connect through other ways 2. How to connect s ...

Posted by ldmccla on Thu, 26 Dec 2019 10:47:17 -0800

MySQL database - MHA high availability cluster architecture (actual combat!!!)

MHA introduction (1) Introduction At present, MySQL is a relatively mature solution in terms of high availability. It is developed by Japanese DeNA company youshimaton (now working for Facebook company), and it is an excellent high availability software for failover and master-slave improvement in MySQL high availability environment. In the p ...

Posted by avvishnu on Wed, 25 Dec 2019 05:36:49 -0800

Getting started with docker installation and basic use of RHEL 7

RHEL 7 installation using docker I. Introduction Docker is an open source application container engine, which allows developers to package their applications and dependency packages into a portable container, and then publish them to any popular Linux machine, or realize virtualization. Containers are completely sandboxed and ...

Posted by Mohit_Prog on Mon, 23 Dec 2019 12:40:24 -0800

Git Push Error'[[Remote Deny] Host - > Host (Branch currently checked out)''

Yesterday, I published a post about how to Git Repository from one of my computers Problem cloning to another computer , How do I "git clone" from another computer? . Now I can successfully clone the Git repository from the source (192.168.1.2) to the target (192.168.1.1). However, when I was on a file, git commit-a-m "t ...

Posted by hennety on Sat, 14 Dec 2019 18:53:33 -0800