In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Preface
The server is the Linux-Centos7 system, yesterday there was a very strange situation, tomcat has been closed, still shows that its port 8080 is occupied, and finally located to occupy the port of the process, to solve the problem, the following words do not say much, let's take a look at the detailed introduction.
1. View the processes occupying the port netstat-lnp | grep 8080
[root@izbp109iqt20o2h73tpcuvz java] # netstat-lnp | grep 8080tcp6 0 0: 8080: * LISTEN 4486/java
As you can see, it is 4486 of a java process that occupies port 8080.
two。 View process information ps 4486
[root@izbp109iqt20o2h73tpcuvz java] # ps 4486 PID TTY STAT TIME COMMAND 4486? Sl 1:16 / usr/local/java/jdk1.8.0_152/jre/bin/java-Djava.util.logging.config.file=/usr/local/j
Log-related programs
3. Forced killing process kill-9 4486
[root@izbp109iqt20o2h73tpcuvz java] # kill-9 4486 [root@izbp109iqt20o2h73tpcuvz java] # netstat-lnp | grep 8080 [root@izbp109iqt20o2h73tpcuvz java] #
After killing the process, check the port occupancy again and find that there is no port occupancy. The problem is solved.
The complete operation record is as follows:
[root@izbp109iqt20o2h73tpcuvz java] # netstat-lnp | grep 8080tcp6 0 0:: 8080: * LISTEN 4486/java [root@izbp109iqt20o2h73tpcuvz java] # ps 4486 PID TTY STAT TIME COMMAND 4486? Sl 1:16 / usr/local/java/jdk1.8.0_152/jre/bin/java-Djava.util.logging.config.file=/usr/local/j [root@izbp109iqt20o2h73tpcuvz java] # kill-9 4486 [root@izbp109iqt20o2h73tpcuvz java] # netstat-lnp | grep 8080 [root@izbp109iqt20o2h73tpcuvz java] #
Summary
The above is the whole content of this article, I hope that the content of this article has a certain reference and learning value for your study or work, if you have any questions, you can leave a message and exchange, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.