How do you check which service is using a port in Linux?

How do you check which service is using a port in Linux?
Answer
Method 1: Using the netstat command
  • Then run the following command: $ sudo netstat -ltnp.
  • The above command gives netstat information based on the following features:
  • Method 2: Using the lsof command.
  • Let us use lsof to view the service listening on a specific port.
  • Method 3: Using the fuser command.
 

Tìm kiếm

Back
Top