sort and uniq: sorting tools for Shell programming

This article mainly writes some shell script sorting tools. sort Summary Sort is a tool to sort the contents of files in behavioral units, or according to different data types. usage sort parameter -f: ignore case-b: ignore the space before each line-M: sort by month-n: sort by number-r: reverse sort-u: equivalent to uniq, indicating that o ...

Posted by Bluemercury on Wed, 16 Oct 2019 14:01:17 -0700

ACL standard access control list

ACL Access Control List Structure Diagram Objective of this chapter Learn TCP and UDP protocolsOverview of access control list, how access control list worksType of access control list.Configuration of standard access control class tableCreate ACLApply ACLy to interfaceConfiguration instance of standard ACL I. access control list (ACL) 2. ...

Posted by FUNKAM35 on Tue, 15 Oct 2019 06:25:40 -0700

File Processor-sed

sed workflow Sed is an online, non-interactive editor that processes one line of content at a time. When processing, the currently processed rows are stored in a temporary buffer, called pattern space, and then the contents of the buffer are processed with sed command. After processing, the contents of the buffer are sent to the screen. Then ...

Posted by risi on Fri, 11 Oct 2019 03:13:46 -0700

Shell Programming-Expect Free of Interaction

Expect overview Expect is a tool based on tcl. Expect is a tool for automatic control and testing. It mainly solves the problem of non-interaction in shell script. It's helpful for large-scale Linux operations and maintenanceIn the development of Linux operations and peacekeeping, we often need remote login server to operate. The login proces ...

Posted by Redneckheaven on Thu, 10 Oct 2019 06:18:15 -0700

Docker installs Gitlab and Gitlab-Runner and implements the project CICD

This article describes in detail how to install Gitlab, Gitlab-Runner and implement CICD of the project using Docker in Linux system. Installation of Gitlab 1. Pull up the mirror and start it Since port 80 of the server may be occupied, we have changed to other ports to start it here. docker run -d -p 2443:443 -p 5678:80 -p 2222:22 --name gitla ...

Posted by Skoalbasher on Sun, 06 Oct 2019 00:33:03 -0700

Record a Centos 7.5 upgrade SpenSSH8.0p1

Previous Cause: The server was scanned for a SpenSSH vulnerability, so an upgraded version was needed to fix the vulnerability. Server version: # cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) Pre-upgrade ssh version: # ssh -V OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 Upgraded ssh version: # ssh -V OpenSSH_8.0p1, OpenSSL 1.0 ...

Posted by student101 on Sat, 05 Oct 2019 23:16:10 -0700

Various daemon States

Various daemon States Article directory Various daemon States 1. pseudo distribution 2. Fully distributed 2.1 Do not open yarn 2.2 Open yarn (MRAppMaster and YarnChild are available only with MapReduce tasks) 3. Fully Distributed (High Availability) 3.1 Manual Disaster Recovery 3.1.1 No yarn 3 ...

Posted by palpie on Sat, 05 Oct 2019 17:26:13 -0700

Constructing key pair for remote connection between Linux server and client

Client: 192.168.1.10 Zhangsan userServer: 192.168.1.20 Lisi usersCreate key pairs in the client: [zhangsan@localhost /]$ ssh-keygen -t ecdsa # - t is used to specify algorithm types: ecdsa and dsa Generating public/private ecdsa key pair. Enter file in which to save the key (/home/zhangsan/.ssh/id_ecdsa): # Specify the private key ...

Posted by jack_wetson on Fri, 04 Oct 2019 18:03:27 -0700

Git: push error: error: failed to push some refs to

Reference link: https://help.github.com/en/articles/dealing-with-non-fast-forward-errors Report errors: ! [rejected]master -> master (fetch first) error: failed to push some refs to 'https://github.com/rtczza/IPC.git' You want to upload the fork folder and the files in its directory to github. ...

Posted by js_280 on Fri, 04 Oct 2019 16:25:22 -0700

Download mirror error Couldn't connect: SOCKS protocol error in minikube

Problem description The agent environment variable used to start minikube creates a minikube virtual machine, but errors occur when downloading or querying mirrors, such as the following two commands reporting a similar error: "Couldn't connect: SOCKS protocol error" # Execute outside the mi ...

Posted by MadDogSh on Thu, 03 Oct 2019 03:08:55 -0700