1. Thread concept
1.1 comparison between threads and processes
Threads are similar to processes, both of which have PCB s
The underlying functions of both are the same, and both use clone
Processes can become threads
Under Linux, thread is the smallest unit of execution; process is the smallest uni ...
Added by pcwizzzz on Thu, 18 Jun 2020 08:51:58 +0300
Introduction to NFS
NFS is network Short for file system, the main function is to let different machines and different operating systems share the specified resource files with each other through the network. It can be simply considered as a ...
Added by rhaggert on Wed, 17 Jun 2020 07:47:11 +0300
1. Count the number of files under / var/log.
//find /var/log -type f | wc -l;
2. How to output the running result of F1.txt file to F2.txt?
// ./F1 > F2.txt shF1 > F2.txt;
3. Write a script to judge which ip addresses are currently online in the 192.168.1.0/24 network, and ping the gen ...
Added by brbsta on Sun, 14 Jun 2020 05:18:43 +0300
Signal 2 of IPC mode under Linux
3. Signal set operation function
3.1 signal set setting
3.2 sigprocask function
3.3 sigpending function
3.4 put the pending signal set of all conventional signals on the screen
4. Signal capture (important)
4.1 signal function
4.2 sigaction function
4.3 signal capt ...
Added by moola on Thu, 11 Jun 2020 09:57:44 +0300
Note that if Chrome is not installed in the default path, you need to use the option.binary_location sets the path of chrome. If the chrome driver is not in the same path as the current code, you also need to set the path of the chrome driver.
option = webdriver.ChromeOptions() ...
Added by rachae1 on Tue, 09 Jun 2020 08:30:54 +0300
preparation in advance
Offline package download: https://github.com/goharbor/h...
Select 572MB tgz
Hearing that 1.7.6 seems to have a bug, for insurance reasons, I choose 1.8.5
Note minimum installation requirements
Install docker, configure the source below, and install a specific version of docker (reference documentati ...
Added by rodin on Sun, 07 Jun 2020 04:23:22 +0300
Use Linux commands to view data about the current system status and health. However, a single Linux command and application can only obtain one aspect of system data. We need to use the Python module to feed these details back to the administrator and generate a useful system report at the same time. ...
Added by Simon Mayer on Fri, 05 Jun 2020 07:12:29 +0300
Container and image
Common container States
Note: to view the commands used for docker status:
docker ps: container for viewing running status
docker ps -a: View containers in all States
docker ps -qa: view all container ID S
docker stop $(docker ps -qa): stop all containers
docker rm $(docke ...
Added by shutat on Mon, 01 Jun 2020 11:28:09 +0300
Log collection adopts ELK framework, i.e. elasticsearch, logstash, kibana, and filebeat component. Filebeat is used to scan log files and send logs to logstash service, while logstash service completes log segmentation and sends logs to elasticsearch service.
2. Deployment steps of filebeat (log - > logstash)
Download the ...
Added by Funbruk on Sun, 31 May 2020 19:13:13 +0300
Introduction to vnc server
vnc server is a service opened on the server in order to satisfy the distributed users to share the resources on the server. The corresponding client software is vnc viewer. vnc server can also be different operating systems, such as using windows to access linux system resources remotely.
VNC connecting Linux
1. Do ...
Added by GM on Sun, 31 May 2020 01:21:49 +0300