WordPress knowledge sharing

You must know the knowledge of common ECS port numbers

The ECS port number is the port number used to access and manage the server. This kind of knowledge is seldom used. It seems boring and difficult for beginners to understand. But it is often used, so Lao Wei, from the perspective of Xiao Bai and beginners, hopes to use this article to explain it easily.

What is the ECS port number

Ports include logical ports and physical ports.

Physical ports refer to physically existing ports, such as router ports, computer network card ports, switch ports, etc., which are visible to the naked eye and are used to connect other network devices.

ECS ports refer to logical ports. A logical port is a port that logically differentiates services, Is invisible to the naked eye In order to treat ports differently, they should go their own ways without confusion. Each port is numbered as a port number. The physical port and logical port numbers range from 0 to 65535, such as port 80 for browsing web services, port 21 and port 22 for FTP services.

For example, ports are like the gates (logical ports) of ECS, and each gate has its corresponding function. It is very important whether the gate is open or closed. Opening one more gate is more risky for the server.

Why should I know the port number

When building a site to use ECS, you must first open the port to access it. It depends on the operating system you choose, and the port number you need to open is also different. As a webmaster, you must know some knowledge about port numbers, which port numbers are commonly used for building a station, and how to open and close port numbers, so as to better build a station.

Detailed introduction to port numbers of common servers for station building

Online articles introducing port numbers are generally long and not suitable for novices. Old Wei summarized the port numbers commonly used in the current station building, and shared them below for beginners to learn.

Common port number of Linux server:

 22 port: SSH port Port 80: HTTP hypertext transmission service Port 443: HTTPS encrypted hypertext transmission service 888 port: phpmyadmin default port number on the pagoda panel 3306 port: MYSQL default port number 8888 port: the default port number of the pagoda panel

The above port numbers must be enabled when using the Linux server+pagoda panel.

For safety's sake, you should Modify these common port numbers. The default , or someone will use the intrusion server. The port number ranges from 0 to 65535. It is recommended to change it to a four digit or five digit number within this range.

Related content: After installing the pagoda panel, you need to change the default port and login account

Pagoda panel gadget collection You can modify the port number on the command line

Lao Wei suggested that the pagoda panel is suitable for novices and Xiaobai to build a website, and supports Linux and Windows systems, Click to go directly to the pagoda website Register an account and get a free professional edition gift package of ¥ 3188 (only 1188 yuan for permanent authorization of the professional edition). New users can enjoy a professional edition experience of 0.99 yuan for 7 days.
Recommended selection of pagoda panel Alibaba Cloud Tencent Cloud The server
For more information, see Special topic of pagoda panel
Click to view NetEase Cloud Classroom "Introduction to Pagoda Linux Panel for Novice"

Common port number of Windows server

 Port 21: FTP file transfer service Port 25: SMTP Simple Mail Transfer Service Port 3389: the port used by remote desktop 5000 port: the port used by MS SQL Server

The port number also needs to be modified, including the Windows version of the pagoda panel.

Also set the security group

Above, we added the common port number for building a website, which is not over yet. For security reasons, domestic cloud server vendors use [Security Group] on the server side to add a firewall to the server. Take Alibaba Cloud and Tencent Cloud for example, enter the server console, click on the left side of the instance list to enter the security group, and add or delete according to the above port number.

The security group should correspond to the port number in the server one by one. If the server has set the security group but has not set it, the corresponding service will be unavailable.

Related articles written: How to set server security groups and ftp ports to improve ECS security

The security group setting tutorials for several major domestic cloud server merchants are as follows. Please refer to them for other merchants.

Alibaba Cloud security group settings: https://www.vpsss.net/2193.html

Tencent Cloud Security Group Settings: https://www.vpsss.net/2153.html

Huawei Cloud Security Group Settings: https://www.vpsss.net/2277.html

Like( zero )
Article name: "You must know the knowledge of common ECS port number summary"
Article link: https://www.vpsss.net/20522.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.