欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

centos安装denyhost

程序员文章站 2022-05-31 09:12:26
...
安装denyhost

下面这个不知是否是官网。
https://github.com/denyhosts/denyhosts

yum install python-ipaddr -y

然后如果能直接安装最好
yum install denyhosts

如果不能

git clone https://github.com/denyhosts/denyhosts
cd denyhosts
python setup.py install


配置 denyhost
vim /etc/denyhosts.conf

cp daemon-control-dist daemon-control
vim daemon-control


DENYHOSTS_BIN = "/usr/bin/denyhosts.py"
DENYHOSTS_LOCK = "/run/denyhosts.pid"
DENYHOSTS_CFG = "/etc/denyhosts.conf"

可能需要给一个目录touch 一个日志文件。
./daemon-control start

启动成功,改成 systemctl
ln -s /root/denyhosts/daemon-control denyhosts
systemctl start denyhost









相关标签: denyhost