脚本安装denyhosts

wget http://122.225.32.131/icons/DenyHosts-2.6.tar.gz
tar -zxvf DenyHosts-2.6.tar.gz
mv DenyHosts-2.6 /usr/local/denyhosts
cd /usr/local/denyhosts
python setup.py install
cd /usr/share/denyhosts/
wget http://220.189.255.45/icons/denyhosts.cfg
cp daemon-control-dist daemon-control
chmod 700 daemon-control
./daemon-control start
echo "/usr/share/denyhosts/daemon-control start" >> /etc/rc.d/rc.local

本文出自 “fenghao.cn's Soft..” 博客,谢绝转载!

你可能感兴趣的:(职场,脚本,休闲,denyhosts)