12 2019 档案
摘要:python利用saltstack检测所管理服务器的硬盘状态 一、在linux中安装saltstack 见此saltstack的安装博文https://www.cnblogs.com/feilu python/p/11982951.html 二、配置python邮件发送程序 代码如下: #!/usr
阅读全文
摘要:SaltStack实践 参考文档 https://www.cnblogs.com/hackerer/p/6617301.htmlhttps://www.cnblogs.com/kevingrace/p/5570290.htmlhttps://mp.weixin.qq.com/s?src=11&tim
阅读全文
摘要:linux如何用脚本设置邮件发送 一、创建脚本文件 mkdir /root/bin cd /root/bin vim sendmail.sh yum -y install mailx yum install -y sendmail yum install -y sendmail-cf yum -y
阅读全文
摘要:邮件发送代码如下 import smtplib, sysfrom email.mime.text import MIMETextimport argparseparser = argparse.ArgumentParser(description='manual to this script')pa
阅读全文