1. 首页
  2. 数据库
  3. 其它
  4. shell监控脚本 准备工作分享

shell监控脚本 准备工作分享

上传者: 2021-01-15 07:16:38上传 PDF文件 39.48KB 热度 18次
1 准备监控机 linux 系统,普通服务器即可,要求: 安装ssh 客户端,如果要发送手机短信,还需准备短信猫并且安装 gnokii或者 gammu 2 编辑ssh_config 配置文件 /etc/ssh/ssh_config 配置文件,设置”GSSAPIAuthentication no” 被监控的linux 编辑 /etc/ssh/sshd_config ,添加 UseDNS no ,最后重启sshd 3 使用密匙登录linux 主机 4 建立sh 目录,用于存放shell 脚本 mkdir -p /root/sh/crontab/log sh 目录存放shell 脚本 cron
下载地址
用户评论