查看Nginx是否启动
2021/8/31 7:06:13
本文主要是介绍查看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
这篇关于查看Nginx是否启动的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-17Nginx实用篇:实现负载均衡、限流与动静分离
- 2024-08-21宝塔nginx新增8022端口方法步骤-icode9专业技术文章分享
- 2024-08-21nginx配置,让ws升级为wss访问的方法步骤-icode9专业技术文章分享
- 2024-08-15nginx ws代理配置方法步骤-icode9专业技术文章分享
- 2024-08-14nginx 让访问带有/relid的地址返回404 ,例子 /relid-x-0.36-y-131.html-icode9专业技术文章分享
- 2024-08-14nginx 判断地址有/statics/的路径,指向到/home/html/statics/目录-icode9专业技术文章分享
- 2024-07-24解锁Nginx日志的宝藏:GoAccess——你的实时、交互式Web日志分析神器!
- 2024-03-29fail2ban nginx
- 2024-03-18install nginx proxy manager
- 2024-01-2444从零开始用Rust编写nginx,命令行参数的设计与解析及说明