进程查询端口占用

查看Java应用

ps -ef | grep java | grep -v grep

查看多端口(root账户的话可以显示端口被哪个应用占用)

netstat -tunlp | grep -E "8088|8280|8180|8080"

#同上 netstat -tunlp | egrep "8088|8280|8180|8080"

ps -ef | grep java | grep ouyeelweb | grep -v grep
原文地址:https://www.cnblogs.com/soymilk2019/p/15166183.html