Common Linux commands (including Apache and MySQL)
Source: Internet
Author: User
Linux common commands (including Apache and MySQL) change password passwdroot Nic add IP address ifconfigeth0: 1184.82.167.219netmask?#248ifconfigeth0: 2184.82.167.220netmask?##248 restart www.2cto...
Linux common commands (including Apache and MySQL) change password passwd root Nic add IP address ifconfig eth0: 1 184.82.167.219 netmask 255.255.255.255.248ifconfig eth0: 2 184.82.167.220 netmask restart 255.255.255.248 restart www.2cto.com rebotshutdown-r now # restart immediately (for root users) shutdown-r 10 # restart automatically in 10 minutes (for root users) shutdown-r 20:35 # Restart at (used by the root user) if the shutdown command is used to set the restart, you can use the shutdown-c command to cancel shutdown. halt # immediately shut down poweroff # immediately shut down shutdown-h now # immediately shut down (for root users) shutdown-h 10 # Automatically shut down in 10 minutes; httpd startapachectl-vapachectl startapachectl stopapachectl restart/etc/httpd/conf/extra/var/log/httpd/tail/etc/httpd/logs/access_logtail-f/ etc/httpd/logs/access_logcat/etc/httpd/logs/access_log | awk '{print $1}' | sort | uniq-c | sort-nr | lesscat/etc/httpd /logs/access_log | grep '02/Apr/100' | awk '{print $1}' | sort | uniq-c | sort-nr | lessnetstat-n | grep tcp | wc-lnetstat-n | Grep udp | wc-lps-aux | grep httpd | wc-lps-ef | grep httpd | wc-lnetstat-n | awk '/^ tcp/{++ S [$ NF ]} END {for (a in S) print a, S [a]} 'www.2cto.com. during the data query process, select a command: netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print, S [a]} ': The Returned result is LAST_ACK 5SYN_RECV 30 ESTABLISHED 1597FIN_WAIT1 51FIN_WAIT2 504TIME_WAIT 1057. SYN_RECV indicates the number of requests waiting for processing. ESTABLISHED indicates normal data transmission; TIME_WAIT indicates the number of requests that have been processed and wait for the timeout to end. The returned results are concise and straightforward, that is, the sentence is a little long-_-prohibit IP addresses from accessing RewriteCond % {HTTP_HOST }! ^ Www.abc.com [NC] RewriteCond % {HTTP_HOST }! ^ Abc.com [NC] RewriteRule (.*) http://127.0.0.1 [R = 301, L] start MySQL www.2cto.com/etc/rc. d/init. d/mysqld start restart/etc/rc. d/init. d/mysqld restart stop/etc/rc. d/init. d/mysqld stop service mysqld startnetstat-n | grep 'MySQL. sock '| wc-l
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.