1.查看端口占用情况:> lsof -i:port
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 119089 root 307u IPv6 111683842 0t0 TCP *:9098 (LISTEN)
2.查找端口占用情况:> netstat -tunlp |grep port
tcp6 0 0 :::9098 :::* LISTEN 119089/java
3.杀死进程(PID): > kill -9 PID
4.后台启动进程: > nohup command &