Description
Cobbler Server System: CentOS 5.10 64-bit
IP Address: 192.168.21.128
You need to install a deployed Linux system:
Eth0 (first network card, for extranet) IP address segment: 192.168.21.160-192.168.21.2
LK StackIn general:1, developers are unable to log on to the online server to view log information2, various systems log a wide range of log data scattered difficult to find3, the volume of log data is large, the query speed is slow, the data is not
Through Iptables fire Strong
Take CentOS as an example, add the following three rules to the iptables:
-A rh-firewall-1-input-s 192.168.0.100-p icmp-m ICMP--icmp-type 0-j ACCEPT-A rh-firewall-1-input-s 192.168.0.100-p icmp-m ICMP--icmp-type 8-j
Method One: Use "dirname" to obtain (extract) the directory name
The syntax is as follows:[Root@dabu.info] #dirname/File/path/pathOr is[Root@dabu.info] #VAR = "$ (dirname/text/Piece/path/filename)"Or[Root@dabu.info] #FOO =
The first must be the root account.
Name: Date
Use Rights: All users
How to use:
Date [u] [D datestr] [s datestr] [--UTC] [--universal] [--DATE=DATESTR] [--SET=DATESTR] [--help] [--version] [+format] [MMDDHHMM[[CC]YY][.SS]]
Description
Dates
Give me the phone, I was decisive first let him put the system partition, the data disk partition first part, and so into the system after I remotely look at the problem. Then he does not divide the data disk after the normal installation of the
1. View TCP connection Status
The code is as follows
Copy Code
Netstat-nat |awk ' {print $} ' |sort|uniq-c|sort-rnNetstat-n | awk '/^tcp/{++s[$NF]}; End {for (a in S) print A, s[a]} ' orNetstat-n | awk
1. Loop through the current directory all file names contain html.php files[Org/tag/root ">root@yu1u.org/]# find. | grep "html.php"
2. Loop through the current directory all file names contain html.php files and delete[root@yu1u.org/]# Find. | grep
Linux file permissions are divided into ACL-enabled and ACL-enabled permissions
If ACL permissions are not enabled LS-L can see the following, Master: RW, Group: RW, others: R-rw-rw-r–-1 www. 0 June 3 23:46 test
Look again. Enable ACL permissions
Simple Web Site Backup script
The code is as follows
Copy Code
#!/bin/bash#backup DatabaseMypw=cactieznewtime=$ (Date +%y%m%d)if [-d/var/www/backup/];thenMysqldump-u ROOT-P$MYPW DB
First, tail command syntaxtail [f] [-c number |-N number |-M number |-B number |-K number] [File]
Parameter description:
-F This parameter is used to monitor file growth.-c number reads the specified file from the number byte position-N number
Previous screenshots in Linux were directly pressed on the Print SCREEN key or ALT + print screens.But the print screen is the entire display, and ALT + print is the current window.What do you want to intercept an area of the screen?The answer is
Green font output:
The code is as follows:
Echo-e "\033[1;32;40mpass\033[0m"Red font output:
The code is as follows:
Echo-e "\033[1;31;40mfail\033[0m"The color of the text terminal can be generated using the ANSI non-normal character sequence.
After purchasing a Linux vps or server, we first need to check whether the purchased server is the same as the solution and configuration we see, this is because the purchased machines are not the same configuration as those actually needed. In this
Nfs:Network File SystemRPC: Remote Procedure CallNFS: sun R & D, protocol;NFSv1, not out of the labNFSv2 (insecure), NFSv3,NIS: Network Information ServiceNfsd: 2049/tcp is listened by nfs-utilsInstall nfsInstall both the client and serverYum
We found/Data/wwwroot/zabbix/img/icon-sprite.svg, Store it locally and open it.Http://editor.method.ac/, Open svg select icon-sprite.svg, then you can see two zabbix pictures in the figureOpen ps, paste two images of the same size as zabbix in the
Here we will talk about the information about the linux command df:Df command:In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service