判断nginx是否运行中:
if ps -ef|grep "nginx"|egrep -v grep >/dev/null
then
echo ok!
else
echo no!
fi
原文地址:https://www.cnblogs.com/DragonStart/p/8184947.html
时间: 2024-10-08 10:38:51
判断nginx是否运行中:
if ps -ef|grep "nginx"|egrep -v grep >/dev/null
then
echo ok!
else
echo no!
fi
原文地址:https://www.cnblogs.com/DragonStart/p/8184947.html