:43localhostyum[29341]: updated:glib2-2.28.8-9.el6.i6867. How do I print the line number and content of the nginx.conf content of the configuration file?Act 1:[Email protected] conf]# NL nginx.conf 1 user nginx;2 worker_processes 4;3 4 #pid/var/run/nginx.pid;5 6 Events {7 Worker_connections 5000;8 #use Epoll; 9} ........ .......Act 2:[Email protected] conf]# cat-n nginx.conf 1 user nginx;2 worker_processes 4;3 4 #pid/var/run/nginx.pid;5 6 Events {7 Worker_connections 5000;8 #use Epoll; 9} 10 ...
: [ OK ]starting sshd: [ OK ]VI. Verification6.1 Log in on CLIENT1 and delete files (Zhangsan)6.2 Log on CLIENT2, delete files, and execute a command to restart the service (LISI)6.3 Go to the server to view the following messages log, the content is as followsThrough, you can see, not through the user's client through the public key login way, identify who operated what, when to operate.(Note: The 4th pa
directory is/users/magedu, and then su switch to this user, copy multiple files to the home directory;# useradd-d/users/magedu magedu# su magedu# cp-r/tmp//users/magedu15, expand MYLV1 to 9G, ensure that the original data is fully available after the expansion;#lvexpand-L 9G/DEV/MYVG/MYLV116, reduce MYLV1 to 7G, to ensure that the original data is fully available after the completion of the reduction;# UMOUNT/DEV/VGTEST/MYLV1# e2fsck-f/DEV/MYVG/MYLV1# RESIZE2FS/DEV/MYVG/MYLV1 7G# lvreduce-l 7G/
Operational commands for some Linux usersUseradd Creating a userAddUser Creating a userpasswd Password Change commandUsermod Change the user name, and the user directoryUserdel Deleting a userID shows the user uid and GIDGroupadd Creating a user groupGroupdel Deleting a user groupGroupmod changing user group name informationGroups displays the group to which the user belongs/etc/skel When a user creates a new user and defaults to the location of the configuration/etc/login.defs is used to define
Super depth of the shell advanced programming practice, as of the current Shell programming courses in the domestic training institutions The most fine courses, do not believe in the level of students to see the performance. course cows are not cattle, not to see the teacher, schedule, but to see the level of training students, at present, all free of the partners hurriedly see AH. Enterprise Combat Problem 6: Please use at least two ways to achieve!Write a script to solve the DOS attack product
Enterprise Face question 11:The shell scripts were developed to compare 2 integer sizes in the same way as script arguments and read reads. Alerts users to compare results in a screen-out manner.Note: Altogether is the development of 2 scripts. When a script is used to pass a parameter and read in the way it needs to determine whether the variable is a number, and how many parameters to pass. My script =========================#read读入方式#!/bin/Bashread-P"pls input num1:"Num1read-P"pls input num2:
Tags: mkdir class date ycm programming cmd databases log backEnterprise Actual combat Problem 8: How to implement the MySQL database for sub-library backup, please use the script to implementMy script =========================#!/bin/Bashbakpath=/server/Backupmyuser=Rootmypass=Oldboy123socket=/data/3306/Mysql.sockmycmd="Mysql-u$myuser-p$mypass-s$socket"Mydump="mysqldump-u$myuser-p$mypass-s$socket-x-b-f-R"[ ! -D $BAKPATH] mkdir-P $BAKPATHDBLIST= ' $MYCMD-E"show databases;"|sec 1d |Egrep-V"_schema|
Enterprise Actual Combat Problem 9: How to implement the MySQL database sub-Library plus table backup, please use the script to implementMy script =======================#!/bin/Bashbakpath=/server/Backupmyuser=Rootmypass=Oldboy123socket=/data/3306/Mysql.sockmycmd="Mysql-u$myuser-p$mypass-s$socket"Mydump="mysqldump-u$myuser-p$mypass-s$socket-x-f-r"[ ! -D $BAKPATH] mkdir-P $BAKPATHDBLIST= ' $MYCMD-E"show databases;"|sec 1d |Egrep-V"_schema|mysql"` fordbnameinch$DBLIST DoTLIST= ' $MYCMD-E"show tabl
The purpose of the experiment is to bind the two NICs, and solve the load balancing and automatic switching.
Linux operating system 6.5,bond0,eth1,eth2.
Bond0 10.10.9.126 eth1 no eth2.
The configuration is as follows:
cd/etc/sysconfig/network-scripts//Enter the network configuration file
CP ifcfg-eth0 ifcfg-bond0/Copy ifcfg-eth0 renamed to ifcfg-bond0 the original Ifcfg-eth0 continues to exist
Configure IFCFG-BOND0Device=bond0Bootproto=noneOnboot=yesipaddr=10.10.9.126dns=202.106.196.
The purpose of the experiment is to bind the two NICs, and solve the load balancing and automatic switching.
Linux operating system 6.5,bond0,eth1,eth2.
Bond0 10.10.9.126 eth1 no eth2.
The configuration is as follows:
cd/etc/sysconfig/network-scripts//Enter the network configuration file
CP ifcfg-eth0 ifcfg-bond0/Copy ifcfg-eth0 renamed to ifcfg-bond0 the original Ifcfg-eth0 continues to exist
Configure IFCFG-BOND0Device=bond0Bootproto=noneOnboot=yesipaddr=10.10.9.126dns=202.106.196.
out the statements in the Crontab24, use a command to see the current system has started the service listening to the port25. Use the Linux system command to count the number of connections to the establish state26, a ext3 file partition, when using touch new file times wrong, the error message is that the disk is full, but use df-h to view the partition information only used 50%, please analyze the specific reason27. List common packaging tools and write the corresponding decompression paramet
/mysql.sock B. Configuring sync parameters from Library change mastermysql> CHANGE MASTER TO -> MASTER_HOST=‘192.168.1.115‘, 主库的IP -> MASTER_PORT=3306, 主库的端口,从库端口可以和主库不同 -> MASTER_USER=‘rep‘,主库上建立的用于复制的用户rep -> MASTER_PASSWORD=‘123456‘, 这里是rep的密码 -> MASTER_LOG_FILE=‘mysql-bin.000036‘,这里是show master status;查看到的二进制日志文件名称注意不能有空格。 -> MASTER_LOG_POS=335;这里也是show master status时看到的二进制日志偏移量注意不能多空格。C. Turn on the sync switch from the library to view the sync statusstart slave;show slave status\GMysql D
the previous version, will coexist with the old version, download the latest ssms;??????? Starting with SQL Server 2017, Microsoft released a cross-platform, and SQL Server started supporting Windows, Linux, and Docker versions. Because of this, a tool is needed to simplify cross-platform development, and Microsoft has launched a new project that publishes a cross-platform database development tool, SQL Operations Studio (sqlops). The tool is a branch of visual Studio code that can run on Windo
[[emailprotected] shell]# echo $VAR123[[emailprotected] shell]# VAR+=456[[emailprotected] shell]# echo $VAR123456All variable references in the shell use the $ character followed by the variable name.Sometimes an individual special character can affect a normal reference, so you need to use ${var}, for example:The result is copied as a variable:The inverse apostrophe here is equivalent to $ (), which is used to execute the shell command.The difference between a single quote and a double quote:Th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.