Use lsof command to find listen on the specified port in Linux process

Looking listening on the specified port process for system administrators, it is an eternal topic. Historically, Linux distributions can use third-party lsof.

lsof is a command, which means "list open files", use the command reports a list of all open files in many Unix-like systems and open them in the process. The open-source utility developed by retired deputy director of the computer center at Purdue University Victor A. Abell and provide support. It can work and support a variety of Unix-style.

Use lsof command to find listen on the specified port in Linux process

Now you want to know which is listening "tcp6 0 0 ::: 80 ::: * LISTEN 1186 / nginx"

Use lsof command to find listen on the specified port in Linux process

Use lsof command to find listen on the specified port in Linux process

Use lsof command to find listen on the specified port in Linux process

Guess you like

Origin www.linuxidc.com/Linux/2019-12/161782.htm