nginx 操作,启动、停止、重启
查看nginx进程看看有没有启动,并可以查看进程ID
[root@tc3 nginxcs]# ps -ef|grep nginxroot 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginxroot 20539 20538 0 13:51 ? 00:00:00 nginx: worker processroot 20540 20538 0 13:51 ? 00:00:00 nginx: worker processroot 24104 20113 0 15:03 pts/2 00:00:00 grep nginx[root@tc3 nginxcs]# sbin/nginx [root@tc3 nginxcs]# ps -ef|grep nginxroot 20538 1 0 13:51 ? 00:00:00 nginx: master process /opt/nginx/sbin/nginxroot 20539 20538 0 13:51 ? 00:00:00 nginx: worker processroot 20540 20538 0 13:51 ? 00:00:00 nginx: worker processroot 24132 1 0 15:03 ? 00:00:00 nginx: master process sbin/nginxnobody 24133 24132 0 15:03 ? 00:00:00 nginx: worker processroot 24139 20113 0 15:03 pts/2 00:00:00 grep nginx[root@tc3 nginxcs]#?
?
?