1、grep -w 3306 /etc/services 使用 netstat -tnl 命令查看哪些端口打开了使用 lsof -i:端口号 查看我要封杀端口好的PIDlsof -i:8036,注意第一个字符是L不是I。用 kill -9 PID号 杀掉我要封禁的端口