Editing
Find process running on port
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Find process running on port in Windows == * {{Linux}} CentOS7: ** {{kbd | key=<nowiki>netstat -na | grep ":<port>"</nowiki>}} e.g. {{kbd | key=<nowiki>sudo netstat -pan | grep ":80"</nowiki>}} or ** {{kbd | key=<nowiki>ps -elf | grep <port></nowiki>}} <pre> ## windows ## After running process on windows, and then input the command: netstat –na | find "4444" TCP 0.0.0.0:4444 0.0.0.0:0 LISTENING TCP [::]:4444 [::]:0 LISTENING ## mac ## After running process on mac, and then input the command: netstat -vanp tcp | grep 4444 tcp46 0 0 *.4444 *.* LISTEN 131072 131072 15476 0 0x0000 0x00000006 tcp4 0 0 127.0.0.1.54419 127.0.0.1.4444 TIME_WAIT 408300 146988 15476 0 0x2031 0x00000000 ## mac ## After running process on mac, and then input the command: lsof -i tcp:4444 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 15476 user 8u IPv6 0x8eb77926a50f8a53 0t0 TCP *:krb524 (LISTEN) ## Liunx ## After running process on mac, and then input the command: sudo netstat -pan | grep ":80" tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 23370/python3 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23025/nginx: master tcp6 0 0 :::80 :::* LISTEN 23025/nginx: master tcp6 0 0 :::8000 :::* LISTEN 22001/docker-proxy </pre>
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information