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.
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 portPort 80: HTTP hypertext transmission servicePort 443: HTTPS encrypted hypertext transmission service888 port: phpmyadmin default port number on the pagoda panel3306 port: MYSQL default port number8888 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 shouldModify 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.
Port 21: FTP file transfer servicePort 25: SMTP Simple Mail Transfer ServicePort 3389: the port used by remote desktop5000 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.
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.