linux中查看端口号

linux中查看端口号

yum install lsof -y

[root@test1 ~]# lsof -i :80
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
httpd   11359   root    4u  IPv6  34040      0t0  TCP *:http (LISTEN)
httpd   11360 apache    4u  IPv6  34040      0t0  TCP *:http (LISTEN)
httpd   11361 apache    4u  IPv6  34040      0t0  TCP *:http (LISTEN)
httpd   11362 apache    4u  IPv6  34040      0t0  TCP *:http (LISTEN)
httpd   11363 apache    4u  IPv6  34040      0t0  TCP *:http (LISTEN)
httpd   11364 apache    4u  IPv6  34040      0t0  TCP *:http (LISTEN)

 

posted @ 2019-03-05 12:39  effortsing  阅读(1988)  评论(0编辑  收藏  举报