怎么查看nginx端口 您所在的位置:网站首页 怎么查看端口被哪个进程占用过 怎么查看nginx端口

怎么查看nginx端口

2023-05-28 17:53| 来源: 网络整理| 查看: 265

怎么查看nginx端口

使用命令netstat -apn查看nginx端口使用情况,再使用ps -aux | grep 7017看哪个进程pid被哪个应用程序所使用。

[root@iZ94j7ahvuvZ sbin]# netstat -apn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7017/nginx tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 870/sshd tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 991/mysqld tcp 0 0 120.25.153.204:51072 110.75.102.62:80 ESTABLISHED 1149/AliYunDun tcp 0 52 120.25.153.204:22 49.73.142.235:49769 ESTABLISHED 2231/sshd udp 0 0 120.25.153.204:123 0.0.0.0:* 878/ntpd udp 0 0 10.116.151.96:123 0.0.0.0:* 878/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 878/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 878/ntpd登录后复制

看哪个进程pid被哪个应用程序所使用

[root@iZ94j7ahvuvZ sbin]# ps -aux | grep 7017Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ root 7017 0.0 0.0 24276 788 ? Ss 11:07 0:00 nginx: master process ./nginx root 7044 0.0 0.0 103264 856 pts/0 S+ 11:22 0:00 grep 7017登录后复制

更多Nginx相关技术文章,请访问Nginx教程栏目进行学习!

以上就是怎么查看nginx端口的详细内容,更多请关注php中文网其它相关文章!



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有