Linux view process number by port number

How to check port occupied in Linux

  1. lsof -i : port number . lsof (list open files) is a tool to list open files on the current system.
  2. netstat -tunlp | grep port number . Netstat command is used to display various network related information, such as network connection, routing table, interface status (Interface Statistics), masquerade connection, multicast membership (Multicast Memberships) and so on.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325446106&siteId=291194637