Linux 查看端口被谁使用中


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

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


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

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

相关内容