给Mysql热备份自动修复脚本增加邮件通知功能,把日志发送到邮箱,以便及时了解状况,如未修复成功,可以马上进行处理。
在测试邮件发送功能时报错,如下
[root@localhost ~]# echo "test" | mail -s "test" xxx@xxx.xx -bash: mail: command not found
因为系统是centos-minimal版,很多工具包都没有安装
yum -y install mailx
ok.邮件收到了
本文链接:https://jeff.xin/post/32.html
--EOF--
Comments
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。