Do you want to know what process is listening on a particular port in Linux?
Using the lsof command you can confirm that a java process with a pid of 14202 is listening on port 7001:
oracle@soahost1:/home/oracle> lsof -i :7001 | grep LISTEN
java 14202 oracle 1013u IPv6 3652361843 0t0 TCP soahost1:afs3-callback (LISTEN)
Similarly, using the netstat command, you can confirm that the java process with a pid of 14202 is listening on port 7001:
oracle@soahost1:/home/oracle> netstat -anp | grep LISTEN | grep 7001
tcp 0 0 ::ffff:10.31.160.230:7001 :::* LISTEN 14202/java
![Ahmed Aboulnaga](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjib0GgSqZWUkGomg4h28t1WvZsvWfKjoQ8IHXvSTmM1HRtn7FaikZ_VaCtYDZmhIGiHCvqpmJhc_GjxsF6Pt99sPCxH6dUyCY941Ov5zdMdehmXqB3OuxKVxmFmEpcMVstKo-156eErQ/w161-h51-no/blogger_footer_ahmed.jpg)
No comments:
Post a Comment