Linux queries all running java services and ports and all ports occupied by Linux

1. View all running java services

ps -ef |grep java    或    ps -aux |grep java  

Insert picture description here

2. Query the port and more information according to the process ID (obtained in the previous step)

netstat -anop | grep 11312

Insert picture description here

3. View all ports occupied by Linux

netstat -tupln  

Insert picture description here

  • Personal open source project (universal background management system) –> https://gitee.com/wslxm/spring-boot-plus2 , you can check it out if you like

  • At this end, if you find it useful, please use your little hand to like or pay attention to it, and we will continue to update more content from time to time... Thank you for watching!

tail -f file name view log
nginx -s reload refresh nginx configuration

Guess you like

Origin blog.csdn.net/qq_41463655/article/details/108973849