Skip to content

Instantly share code, notes, and snippets.

@nlpjoe
Last active September 3, 2018 03:00
Show Gist options
  • Select an option

  • Save nlpjoe/7e80b18d5cc72db019b45243c1268e7b to your computer and use it in GitHub Desktop.

Select an option

Save nlpjoe/7e80b18d5cc72db019b45243c1268e7b to your computer and use it in GitHub Desktop.
[linux utils] #linux

linux下通过进程名查看其占用端口:

1、先查看进程pid
ps -ef | grep 进程名

2、通过pid查看占用端口
netstat -nap | grep 进程pid

linux通过端口查看进程:

netstat -nap | grep 端口号
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment