$ ps -ef | grep nginx # 查看 nginx pid$ kill -9 pid # 杀死相关进程$ lsof -i:8000 # 查看 8000 端口的程序$ sudo netstat -anp | grep pid # 查看进程占用端口号