一、查看端口占用情况的命令:
lsof -i
二、查看某一端口的占用情况: lsof -i:端口号netstat -nlpt|grep 9000 或者 netstat -nlpt|grep php-cgi执行命令kill -9 pid号php-fpm
三、结束占用端口的进程:killall 进程名killall nginx