判断nginx是否运行中:

if ps -ef|grep "nginx"|egrep -v grep >/dev/null
then
        echo ok!
else
        echo no!
fi

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-01-17
相关资源
相似解决方案