查看Nginx是否启动
作者:互联网
查看Nginx进程
ps -ef | grep nginx
输出如下:
root 1036 1 0 Jul15 ? 00:00:00 nginx: master process /www/server/nginx/sbin/nginx -c /www/server/nginx/conf/nginx.conf
www 1048 1036 0 Jul15 ? 00:00:02 nginx: worker process
www 1049 1036 0 Jul15 ? 00:00:17 nginx: cache manager process
root 16689 16515 0 21:06 pts/0 00:00:00 grep --color=auto nginx
root 21989 1 0 17:40 ? 00:00:00 nginx: master process /www/server/nginx/sbin/nginx -c /var/www/QQ_Music/nginx.conf
www 31688 21989 0 18:53 ? 00:00:00 nginx: worker process
查看端口
netstat -anp | grep :90
输出如下:
tcp 0 0 0.0.0.0:9030 0.0.0.0:* LISTEN 31859/jsvc.exec
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 1036/nginx: master
tcp 0 0 0.0.0.0:9010 0.0.0.0:* LISTEN 5760/uwsgi
参考链接:https://www.php.cn/linux-422213.html
标签:00,查看,nginx,process,0.0,启动,www,Nginx,1036 来源: https://www.cnblogs.com/leoych/p/15207930.html