Linux 查看端口被谁使用中

字体大小: 中小 标准 ->行高大小: 标准

lsof -i :80   查看80端口被什么程序占用

netstat -an | grep :80  查看80端口的是否已在使用中,可验证使用该端口的服务是否已正常运行


netstat -tunlp | grep :80  查看80端口是被哪个服务使用着
[root@www.linuxidc.com log]# netstat -tunlp | grep 80
tcp        0      0 :::80                       :::*                        LISTEN      1013/httpd

ps aux | grep httpd    查看httpd服务是否已启动

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/65717.html