denyhost部署

部署

tar xzf DenyHosts-2.6.tar.gz -C /uc

cd /uc/DenyHosts-2.6

 

python setup.py install

 

running install

running build

running build_py

creating build

creating build/lib

creating build/lib/DenyHosts

copying DenyHosts/filetracker.py -> build/lib/DenyHosts

copying DenyHosts/report.py -> build/lib/DenyHosts

copying DenyHosts/restricted.py -> build/lib/DenyHosts

copying DenyHosts/deny_hosts.py -> build/lib/DenyHosts

copying DenyHosts/loginattempt.py -> build/lib/DenyHosts

copying DenyHosts/lockfile.py -> build/lib/DenyHosts

copying DenyHosts/purgecounter.py -> build/lib/DenyHosts

copying DenyHosts/constants.py -> build/lib/DenyHosts

copying DenyHosts/daemon.py -> build/lib/DenyHosts

copying DenyHosts/allowedhosts.py -> build/lib/DenyHosts

copying DenyHosts/prefs.py -> build/lib/DenyHosts

copying DenyHosts/sync.py -> build/lib/DenyHosts

copying DenyHosts/util.py -> build/lib/DenyHosts

copying DenyHosts/counter.py -> build/lib/DenyHosts

copying DenyHosts/old-daemon.py -> build/lib/DenyHosts

copying DenyHosts/version.py -> build/lib/DenyHosts

copying DenyHosts/denyfileutil.py -> build/lib/DenyHosts

copying DenyHosts/plugin.py -> build/lib/DenyHosts

copying DenyHosts/python_version.py -> build/lib/DenyHosts

copying DenyHosts/__init__.py -> build/lib/DenyHosts

copying DenyHosts/regex.py -> build/lib/DenyHosts

running build_scripts

creating build/scripts-2.4

copying and adjusting denyhosts.py -> build/scripts-2.4

changing mode of build/scripts-2.4/denyhosts.py from 644 to 755

running install_lib

creating /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/filetracker.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/report.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/restricted.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/deny_hosts.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/loginattempt.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/lockfile.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/purgecounter.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/constants.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/daemon.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/allowedhosts.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/prefs.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/sync.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/util.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/counter.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/old-daemon.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/version.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/denyfileutil.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/plugin.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/python_version.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/__init__.py -> /usr/lib/python2.4/site-packages/DenyHosts

copying build/lib/DenyHosts/regex.py -> /usr/lib/python2.4/site-packages/DenyHosts

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/filetracker.py to filetracker.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/report.py to report.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/restricted.py to restricted.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/deny_hosts.py to deny_hosts.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/loginattempt.py to loginattempt.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/lockfile.py to lockfile.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/purgecounter.py to purgecounter.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/constants.py to constants.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/daemon.py to daemon.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/allowedhosts.py to allowedhosts.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/prefs.py to prefs.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/sync.py to sync.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/util.py to util.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/counter.py to counter.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/old-daemon.py to old-daemon.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/version.py to version.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/denyfileutil.py to denyfileutil.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/plugin.py to plugin.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/python_version.py to python_version.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/__init__.py to __init__.pyc

byte-compiling /usr/lib/python2.4/site-packages/DenyHosts/regex.py to regex.pyc

running install_scripts

copying build/scripts-2.4/denyhosts.py -> /usr/bin

changing mode of /usr/bin/denyhosts.py to 755

running install_data

copying denyhosts.cfg-dist -> /usr/share/denyhosts

copying setup.py -> /usr/share/denyhosts

copying daemon-control-dist -> /usr/share/denyhosts

copying CHANGELOG.txt -> /usr/share/denyhosts

copying README.txt -> /usr/share/denyhosts

creating /usr/share/denyhosts/scripts

copying scripts/restricted_from_passwd.py -> /usr/share/denyhosts/scripts

copying scripts/restricted_from_invalid.py -> /usr/share/denyhosts/scripts

creating /usr/share/denyhosts/plugins

copying plugins/README.contrib -> /usr/share/denyhosts/plugins

copying plugins/shorewall_deny.sh -> /usr/share/denyhosts/plugins

copying plugins/test_deny.py -> /usr/share/denyhosts/plugins

copying plugins/shorewall_allow.sh -> /usr/share/denyhosts/plugins

copying LICENSE.txt -> /usr/share/denyhosts

 

cd /usr/share/denyhosts/

 

cp denyhosts.cfg-dist denyhosts.cfg

cp daemon-control-dist daemon-control

chown root.root daemon-control

chmod 700 daemon-control

./daemon-control start

 

ln -s /usr/share/denyhosts/daemon-control /etc/init.d/denyhosts

chkconfig --add denyhosts

chkconfig denyhosts on

service denyhosts restart

 

vim /etc/rc.local

/usr/share/denyhosts/daemon-control start

 

转载于:https://www.cnblogs.com/lmgsanm/p/6485571.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值