判断nginx是否运行中:
if ps -ef|grep "nginx"|egrep -v grep >/dev/null
then
echo ok!
else
echo no!
fi
标签:code logs dev null shell编程 判断 linux中 inux nginx
判断nginx是否运行中:
if ps -ef|grep "nginx"|egrep -v grep >/dev/null
then
echo ok!
else
echo no!
fi
标签:code logs dev null shell编程 判断 linux中 inux nginx
原文地址:https://www.cnblogs.com/DragonStart/p/8184947.html