Linux 查看nginx是否启动

  1. 查看Nginx进程是否存在
ps -ef | grep nginx
  1. 查看进程id
ps -C nginx -o pid

3.如果的Nginx运行在80端口

netstat -anp | grep :80