随笔分类 -  脚本

摘要:-eq = -ne != -gt > -lt < -ge >= -le < ! != 非 -o or 或 -a and 并 && and 并 || or 或 -z 检测长度是否为零 -n 检测长度非零 $ 检测非空 -b file 是否为块设备 -c file 字符设备文件 -d file 是否目录 阅读全文
posted @ 2020-09-21 12:08 Le1543 阅读(121) 评论(0) 推荐(0)
摘要:vim keepalived_nginx.pyi# coding=utf-8import os,time,subprocess,threadingdef ping(Sip,Dip): Ip='ping -c 1 -I %s %s'%(Sip,Dip) p = subprocess.Popen([Ip 阅读全文
posted @ 2020-03-20 01:23 Le1543 阅读(188) 评论(0) 推荐(0)
摘要:vim nginx_php.pyi # -*- coding: utf-8 -*-import os,timedef create__file(file_path,msg): f=open(file_path,"a") f.write(msg) f.closei = os.system('rm -r 阅读全文
posted @ 2020-03-18 01:42 Le1543 阅读(211) 评论(0) 推荐(0)
摘要:自定义告警 yum install -y mailx dos2unix vim /etc/mail.rc 最后添加下面3行 set from=luo-jia-le@163.com smtp=smtp.163.comset smtp-auth-user=luo-jia-le@163.com smtp- 阅读全文
posted @ 2020-01-03 11:42 Le1543 阅读(135) 评论(0) 推荐(0)