摘要: 1.邮件客户端 yum -y install mailx 2.配置邮箱信息 使用下面信息能够完成发送邮件的功能,亲测可用。 [root@gong ~]# vi /etc/mail.rc 末尾添加 set from=1402122292@qq.com #发件人 set smtp=smtp.qq.com 阅读全文
posted @ 2020-09-03 16:55 Gshelldon 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1、编辑shell脚本 [root@web03 ~/monitor_scripts]# cat inspect.sh #!/bin/bash # 设置磁盘的阀值 disk_max=90 # 设置监控inode的分区 partition="/dev/sda3" # 设置磁盘inode使用率的阀值 di 阅读全文
posted @ 2020-09-03 16:31 Gshelldon 阅读(351) 评论(0) 推荐(0) 编辑