Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Do you know the name of the process? If you do, the second entry in ps above ( root 2 0.0... ) is the PID.
To kill it:
kill -15 2
Where 2 is the pid of the process (assuming the process you wanna kill is migration_CPU1 ).
So further down your ps string, find the name of the process and kill it similarly. If 15 doesn't kill it, send:
kill -9 pid
instead. A 9 signal is not as clean as a 15, but sometimes is necessary.
For stopping an httpd server though (assuming apache):
apachectl stop
Should suffice...
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
I figured it out...it is:
$ netstat -nap | grep 8080
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2352/tnslsnr
I would like to know how can I find out which process (pid) is running on a certain port so I can stop it?
Your question was kind of vague, but even so, it wasn't exactly what you decided... You found which port, but then you've also now found out how to stop it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.