check Nginx running scripts
时间:
2018-01-16 13:46:02
阅读:
232
评论:
收藏:
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
ficheck Nginx running scripts
原文:http://blog.51cto.com/546136/2061508