常用shell命令
# 找出java进程并杀掉 ps -ef | grep java | kill -9 `awk '{print $2}'` # MAC下看某个端口被占用情况 (TCP/LISTEN) lsof -n -i4TCP:8080 | grep LISTEN