查看端口是否被占用: netstat -apn|grep [color=red]port[/color] 查看被哪个进程占用: lsof -i:[color=red]port[/color] 查看具体进程 ps -ef|grep PID