1. 安装Login as the root user to SSH and run the following commands.rm -fv csf.tgzwget
apt-get install libwww-perltar -xzf csf.tgzcd csfsh install.sh
2. 防范DDOS攻击Step 1 : Open the CSF configuration file /etc/csf/csf.confStep 2 : In that search for option called CT_LIMIT, by default it will be like CT_LIMIT=0 , change this to CT_LIMIT=90 ,here 90 is the max no.of connections from an IP to your server ( choose this value according to your server usage )
Step 3:Now search for option called CT_PORTS.This option is used to specify the port for which you want prevent DOS attack.Since our aim is to prevent the DOS attck to apache – port 80 , change CT_PORTS = “” to CT_PORTS = “80″
3. 限制每个IP连接数
CONNLIMIT = “80;7”
4. PT_LIMIT = “0” 禁止程序内存不足时,发邮件
,曾经一直想让别人知道自己的心情,那些沉重,