使用lsof 12 lsof -i: // 端口号查看某个端口是否被占用 lsof -i:80 //查看80端口的占用情况 使用netstat 1 netstat -anp|grep 80 //查看80端口的占用 (那个程序,显示程序的pid,路径) 赞微海报分享
近期评论