• 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

    每天更新一点点,温习一点点点,进步一点点
  • 相关阅读:
    C#,调用dll产生 "尝试读取或写入受保护的内存 。这通常指示其他内存已损坏。"的问题
    【调试输出】与【输出调试文本】的区别
    二、易语言 api 相关
    E4A 与JS交互事件无反应
    变量循环首、判断循环首、枚举循环首
    文本的操作:子文本替换、分割文本、取文本中间、取指定文本
    变量、&连接、函数与过程、按下某键
    淘宝客推广链接如何转换?
    淘宝客知道这几个ID,收入将会提高50%
    文件已经加入.gitignore但是vs并没有显示文件处于ignore状态
  • 原文地址:https://www.cnblogs.com/lmgsanm/p/6485571.html
Copyright © 2020-2023  润新知