Current location - Quotes Website - Collection of slogans - How to view the port number of linux How to view the port number of linux
How to view the port number of linux How to view the port number of linux
How to check which ports are open and which ports are closed under LINUX?

The netstat-anplut command can see the information of all the ports that are listening and connecting, but can't see the ports that are not enabled. Ports that are not enabled are never considered visible.

Should be a novice linux? This question is very new. Linux system management issues, apache, tomcat and other applications under Linux, if you have any questions, the landlord can always find me! How to check which program of linux occupies the port?

Check the port usage and use the netstat command.

View the connected service port (ESTABLISHEDnetstat-a) View all service ports (LISTEN, ESTABLISHED)netstat-ap View port 8080, and then you can combine the grep command: netstat-ap|grep8080 If you view port 8888, enter: lsof-I: 8888 What ports can Linux view besides telnet?

Netstat-an looks at the network port lsof-i:port. Through lsof-i:port, you can see the programs running at the specified port and the current connection.

Nmap port scanning

Linux port command?

Commands for viewing ports on Linux:

Type 1: lsof-i: port number.

The second type: netstat-nltp|grep port number.

-a: Displays all connection ports and listening ports of this machine.

-n: The form of network IP address, which shows the currently established valid connections and ports.

-r: display routing table information

-s: Display statistics by protocol.

-v: Displays the currently valid connections.

-t: display all TCP protocol connections.

-u: Show all UDP protocol connections.

-i: Displays the status of the auto-configuration port.

-l: Only the service network status with the connection status of monitoring is displayed.

-p: display pid/programname.

How does linux view the ports occupied by a thread?

Ps-aux|grepjava, or directly: ps-aux|greppid view.