查看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

posted @ 2021-08-30 21:17  胸怀丶若谷  阅读(951)  评论(0编辑  收藏  举报