ps -ef | grep 程序名| grep -v grep | wc -l
cd $(dirname $0)source ~/.bash_profilecount=`ps -ef | grep "nginx: master process" | grep -v grep | wc -l`if [ $count -eq 0 ];then /data/openresty/nginx/sbin/nginxfi
本文共 213 字,大约阅读时间需要 1 分钟。
ps -ef | grep 程序名| grep -v grep | wc -l
cd $(dirname $0)source ~/.bash_profilecount=`ps -ef | grep "nginx: master process" | grep -v grep | wc -l`if [ $count -eq 0 ];then /data/openresty/nginx/sbin/nginxfi
转载地址:http://eikfk.baihongyu.com/