centos安装denyhost
程序员文章站
2022-05-31 09:12:38
...
安装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
下面这个不知是否是官网。
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
推荐阅读
-
Jenkins的安装配置详解
-
linux下perl操作mysql数据库(需要安装DBI)
-
centos下mysql主从同步快速设置步骤分享
-
MySQL5.7.16绿色版安装教程详解
-
CentOS6.5下RPM方式安装mysql5.6.33的详细教程
-
CentOS 7 中以命令行方式安装 MySQL 5.7.11 for Linux Generic 二进制版本教程详解
-
mysql 5.7.9 winx64在windows上安装遇到的问题
-
mysql 5.6.13 免安装版配置方法详解
-
64位 win10系统安装绿色版mysql-5.7.16-winx64的教程
-
Laravel5.7框架安装与使用学习笔记图文详解