[RH134] 10-NFS and Samba Clients

For configuration of NFS and samba servers, see: Here, we will only discuss the use of the client   1. Use of NFS clients nfs implements a remote shared directory between Unix-like systems.   Suppose we already have a server that provides nfs services with an IP of 192.168.1.17.A directory/aa has already been shared. 1) Query nfs direc ...

Posted on Sun, 05 Apr 2020 20:45:05 -0700 by mridang_agarwal

What is the difference between 127.0.0.1 and localhost in connecting to mysql database

1, The difference between 127.0.0.1 and localhost in connecting mysql database 1. Connection of localhost to mysql database mysql -h localhost -uroot -p 2. The following is 127.0.0.1 connecting to mysql database mysql -h 127.0.0.1 root -p I don't know how you see the connection is different. Let me analyze ...

Posted on Sun, 05 Apr 2020 18:07:25 -0700 by elementaluk

Chapter 7 1. Input / output and template

Catalog I / O stream Flow operator** File read write [^ 1] I / O stream I / O class derivation Standard flow object Standard input stream: cin -- connected to standard input device, istream object Standard output stream: cout -- connected to standard output device, ostream objectcerr -- connected to standard error output device (no buf ...

Posted on Sat, 04 Apr 2020 01:54:31 -0700 by fallen00sniper

ps command is a simple use

Ten simple uses of ps command Annotation ps commands have two different syntax styles - BSD and UNIX. Novices often misunderstand these two forms, so we need to make a simple explanation here: ps aux is different from ps aux. For example, the - U parameter indicates the uid of the printing process, while the parameter ...

Posted on Thu, 02 Apr 2020 05:41:13 -0700 by Prodigal Son

Docker discovery-swarm to build docker cluster

Origin: http://www.cnblogs.com/520playboy/p/7873903.html Preface Swarm was an independent project prior to Docker version 1.12. After the release of Docker version 1.12, the project was merged into Docker and became a subcommand of Docker. Doker swarm is a tool for creating a server cluster, which requires only a few commands to create a ...

Posted on Wed, 01 Apr 2020 10:14:08 -0700 by stormszero

Introduction to compression packaging, gzip compression tool, bzip2 compression tool, xz compression tool

Introduction to compression packaging Compressing files saves bandwidth. Common compressed files windows -.rar   .zip   .7z linux-.zip ,.gz,  .bz2,  .xz, .tar.gz ,  tar.bz2, tar.xz gzip compression tool Usage: gzip [filename] cannot compress directory [root@glinux-01 tmp]# gzip test.sh [root@glinux-01 tmp]# ls dnsmasq.conf newdisk ...

Posted on Tue, 31 Mar 2020 22:25:35 -0700 by topflight

Slow query log of MySQL optimization

Overview of slow query log The so-called slow query log is used to record SQL statements with response time exceeding the set threshold in MySQL. By turning on the slow query switch, MySQL will record SQL with response time greater than the threshold in the log for performance analysis. The slow query log option is off by default. If you want t ...

Posted on Tue, 31 Mar 2020 14:44:01 -0700 by misteraven

How do I run Shell scripts on Nginx?

Antecedents During the deployment of Smokeping, I was not familiar with the configuration of Apache2. The most difficult thing is to solve the problem of CGI operation. Consequence Running a Shell script on Nginx Pre deployment Nginx does not support running CGI programs. You need to use fcgiwrap to convert CGI to FastCGI. apt-get -y ins ...

Posted on Mon, 30 Mar 2020 14:40:54 -0700 by leightons

Correct use of parser for Python crawler BS4 Library

The reason bs4 libraries can quickly locate the elements we want is because they can parse html files in one way, and different parsers have different effects.This is described below. bs4 Parser Selection The ultimate purpose of a web crawler is to filter the selected network information, the most important part can be said to be a parser.Th ...

Posted on Sat, 21 Mar 2020 20:09:49 -0700 by 696020

Advanced operating system experiment 2-process scheduling and switching analysis

First, write the application program to make it contain three processes, output three letters respectively. I don't know where to start. First, study the example that the teacher in class says. The code is as follows 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <pthread.h> 4 5 void loop(){ 6 while(1); 7 } ...

Posted on Fri, 20 Mar 2020 10:49:24 -0700 by Fallen_angel