1.查看端口占用进程
#没有反应,则说明端口未被占用
lsof -i :8080
2.端口号查进程号
netstat -nlp | grep 8080
3.进程号查端口
lsof -i |grep pid
4.根据进程号查路径
ll /proc/{进程号id}/cwd
1.查看端口占用进程
#没有反应,则说明端口未被占用
lsof -i :8080
2.端口号查进程号
netstat -nlp | grep 8080
3.进程号查端口
lsof -i |grep pid
4.根据进程号查路径
ll /proc/{进程号id}/cwd