How Linux can see if the 3306 port number is open __linux

Source: Internet
Author: User

During Linux use, you need to know which ports are open to the current system, and to see the specific processes and users that open those ports, you can simply query by using the netstat command 2

The netstat command parameters are described below:

-T: Indicates that the TCP port is displayed

-U: Indicates that the UDP port is displayed

-L: Monitor sockets only (so-called sockets are programs that enable applications to read and receive communication protocols (protocol) and data)

-P: Displays the process identifier and program name, each socket/port belongs to a program.

-N: Do not perform DNS polling, display IP (can accelerate operation) 3

To display all ports and process services on the current server, and to view a specific port and service situation in the grep combination. ·

NETSTAT-NTLP//View all current TCP ports ·

Netstat-ntulp |grep 80//View all 80 port usage ·

Netstat-an | grep 3306//View all 3306 port usage ·

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.