服务器常用命令

服务器常用命令
查看磁盘 df -h , du -hs /var
tcpdump port 80
vmstat -n 2
squidclient -p3128 cache_object://localhost/info 
查看连接命令         netstat -an|grep EST|awk "{print $3}"|awk -F":" "{print $1}"|sort|uniq -c|sort    
封禁连入的ip          iptables -A INPUT -p tcp --dport 80 -s xxx.xxx.xxx.xxx -j DROP
检查named错误的命令      grep named /var/log/messages | tail -n 20
				跟踪dns查询      dig @202.103.0.117 www.hssygz.com
				.
				 +trace
		

你可能感兴趣的:(服务器常用命令)