nginx看端口使用情况

[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 7017
Warning: 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

 

转载于:https://www.cnblogs.com/sz-jack/p/5200360.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值