• denyhost安装脚本


    #!/bin/bash
    DENYHOSTS=DenyHosts-2.6.tar.gz
    DENYHOSTS_VERSION=DenyHosts-2.6
    DENYHOSTS_URL=http://192.168.0.155/soft/DenyHosts/DenyHosts-2.6.tar.gz
    DOWNLOAD_PATH=/root
    SRC_PATH=/usr/local/src/
    INSTALL_PATH=/usr/share/denyhosts/
    cd ${DOWNLOAD_PATH}
    /usr/bin/wget ${DENYHOSTS_URL}
    tar xzf ${DOWNLOAD_PATH}/${DENYHOSTS} -C ${SRC_PATH}
    cd ${SRC_PATH}/${DENYHOSTS_VERSION}/
    /usr/bin/python setup.py install > /dev/null
    cd ${INSTALL_PATH}
    cp ${INSTALL_PATH}/denyhosts.cfg-dist ${INSTALL_PATH}/denyhosts.cfg
    cp ${INSTALL_PATH}/daemon-control-dist ${INSTALL_PATH}/daemon-control
    chown root.root ${INSTALL_PATH}/daemon-control
    chmod 700 ${INSTALL_PATH}/daemon-control
    ln -s ${INSTALL_PATH}/daemon-control /etc/init.d/denyhosts
    /sbin/chkconfig --add denyhosts
    /sbin/chkconfig denyhosts on
    /sbin/service denyhosts restart
    #echo "${INSTALL_PATH}/daemon-control" >> /etc/rc.local

    每天更新一点点,温习一点点点,进步一点点
  • 相关阅读:
    使用gulp搭建一个传统的多页面前端项目的开发环境
    抓包工具使用
    selectors 模块
    I/O模型
    协程
    进程池
    进程的同步
    进程间通讯的三种方式
    多进程调用
    生产者消费者模型
  • 原文地址:https://www.cnblogs.com/lmgsanm/p/6485548.html
Copyright © 2020-2023  润新知