摘要: 因实际网络环境复杂,直接添加ssh白名单风险较大,使用sshrc文件调用企业微信api实现警告白名单。 $ chmod a+x /etc/ssh/sshrc $ cat /etc/ssh/sshrc #!/bin/bash #登录用户 user=$USER #发起登陆ip ip=${SSH_CLIE 阅读全文
posted @ 2020-08-28 17:35 LasyLindsey 阅读(380) 评论(0) 推荐(0)
摘要: sshd配置文件/etc/ssh/sshd_config # 1. 关于 SSH Server 的整体设定,包含使用的port ,以及使用的密码演算方式Port 22 # SSH 预设使用 22 这个 port,您也可以使用多的port ! # 亦即重复使用 port 这个设定项目即可!Protoc 阅读全文
posted @ 2020-08-27 12:56 LasyLindsey 阅读(4368) 评论(0) 推荐(0)
摘要: 官网 http://sebastien.godard.pagesperso-orange.fr “The sysstat utilities are a collection of performance monitoring tools for Linux. These include sar, 阅读全文
posted @ 2020-08-21 11:33 LasyLindsey 阅读(267) 评论(0) 推荐(0)
摘要: 发现集群里一台机器的系统时间跟ntp服务端差了好几个小时,log一直在报 panic_stop +1460 s; set clock manually within 1000 s. 需要手动把时间同步到跟ntp服务端 1000 s以内,ntp才能正常运行。 解决方法:vi /etc/ntp.conf 阅读全文
posted @ 2020-08-17 14:28 LasyLindsey 阅读(3338) 评论(0) 推荐(0)
摘要: https://www.linuxidc.com/Linux/2018-08/153712.htm 阅读全文
posted @ 2020-08-07 16:36 LasyLindsey 阅读(109) 评论(0) 推荐(0)
摘要: 由于非root用户需要使用docker运行程序,为了开通docker命令的使用权限,为此用户添加了docker组。 解决完使用权限之后,发现数据权限存在较大安全隐患: 例如:我现在有一个带docker组的用户 使用此用户访问/root路径,无疑会Permission denied 下面,用此用户随便 阅读全文
posted @ 2020-08-07 16:28 LasyLindsey 阅读(968) 评论(0) 推荐(0)
摘要: 1、给sudo权限 chmod a+w /etc/sudoers vi /etc/sudoers #仅允许以root身份使用指定命令 username ALL=NOPASSWD: /usr/bin/docker chmod a-w /etc/sudoers sudo docker xxxx 2、给u 阅读全文
posted @ 2020-08-07 11:11 LasyLindsey 阅读(436) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/alantu2018/p/9002441.html 阅读全文
posted @ 2020-08-07 10:51 LasyLindsey 阅读(108) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/wahaha02/p/9392088.html 阅读全文
posted @ 2020-08-06 11:38 LasyLindsey 阅读(112) 评论(0) 推荐(0)
摘要: 参考文档为:https://www.cnblogs.com/peng104/p/10296717.html 包括运行原理等非常清晰,这里记录我按步骤操作出现的小问题。 环境为: CentOS Linux release 7.4.1708 (Core) 1、安装docker: yum -y insta 阅读全文
posted @ 2020-08-05 13:45 LasyLindsey 阅读(146) 评论(0) 推荐(0)