CentOS查看占用端口并关闭 1、查看占用的端口号 netstat -lnp|grep 80 #80 是你需要查看的端口号 二、查看进程的详细信息 ps 29280 #查看进行信息,是否是自己要找的进程 三、杀掉进程 kill -9 29280