- 查看80端口占用的數(shù)量
netstat -ant | grep $ip:80 | wc -l
- 屏蔽IP地址段
iptables -I INPUT -s 100.0.0.0/24 -j DROP
- 查看端口占用的IP
netstat -nat|grep ":80"|awk '{print $5}' |awk -F: '{print $1}' | sort| uniq -c|sort -n
4.apache 出現(xiàn)僵尸進(jìn)程處理辦法,若反復(fù)出現(xiàn)可使用定時(shí)任務(wù)執(zhí)行以下命令
pkill -9 httpd
/etc/init.d/httpd start
5.設(shè)置環(huán)境變量
如將路徑/usr/sbin 加入環(huán)境變量
export PATH=$PATH:/usr/sbin
apache 連接數(shù)設(shè)置 :https://www.cnblogs.com/EasonJim/p/8098532.html