摘要:
用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把22 80端口映射到公网,发现经常被暴力破解,自己写了个临时封禁ip功能的脚本,实现5分钟内同一个ip登录密码错误10次就封禁这个ip 5分钟,并且进行邮件通知 使用步骤 openwrt为19.07.03版本,其他版本没有测试过 安装b 阅读全文
摘要:
花了两天部署了一套监控服务 prometheus+node-exporter+grafana,公司的gitlab服务器准备部署node-exporter的时候突然发现gitlab已经有了这些服务, 也懒得去研究gitlab为啥要这些服务,既然gitlab服务器已经包含了node-exporter服务 阅读全文
摘要:
1.检查 查看定时任务文件发现有两个异常定时任务 [root@manage ~]# cat /etc/crontab # * * * * * user-name command to be executed #*/1 * * * * root /etc/cron.hourly/ssh_deny.sh 阅读全文
摘要:
1.下载 4个rpm包 mysql-community-client-5.7.26-1.el7.x86_64.rpmmysql-community-common-5.7.26-1.el7.x86_64.rpmmysql-community-libs-5.7.26-1.el7.x86_64.rpmmy 阅读全文
摘要:
运行容器提示权限问题 docker run -v $PWD/myapp:/usr/src/myapp -w /usr/src/myapp python:3.5 python helloworld.pyhello python: can't open file 'helloworld.py': [Er 阅读全文