查看端口是否开启 telnet 127.0.0.1 80 nmap ip -p xx ##查看是否开启 netstat -pan | grep 80 查看端口是否处于监听状态 lsof -n -i -P | grep 80 查看被什么文件占着ip