

免费资源网 – https://freexyz.cn/
复制代码
代码如下:
#!/bin/bash
port=”80″
restart=”/etc/init.d/httpd restart”
EMAIL=”/bin/echo selboo | mutt -s “重新启动httpd” root@selboo.com.cn”
netstat -ln |awk ‘/^tcp/ {print $4} |grep -q “:$port$” || {
#reboot httpd
eval $restart;$EMAIL
exit $?
}
exit 0
免费资源网 – https://freexyz.cn/
© 版权声明
THE END
暂无评论内容