首页 > 其他 > 详细

check Nginx running scripts

时间:2018-01-16 13:46:02      阅读:232      评论:0      收藏:0      [点我收藏+]
#! /bin/bash
if [ netstat -tnlup | grep nginx | wc -l -gt 0 ];then
echo "Nginx is running."
else
echo "Nginx is stopped."
/etc/init.d/nginx start
fi

check Nginx running scripts

原文:http://blog.51cto.com/546136/2061508

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!