查看端口是否開啓 telnet 127.0.0.1 80 nmap ip -p xx ##查看是否開啓 netstat -pan | grep 80 查看端口是否處於監聽狀態 lsof -n -i -P | grep 80 查看被什麼文件佔着ip