Ali cloud linux cloud server public network address can not be accessed the most common solutions to the two most common problems

We check our own server instance and select More>Network and Security Group>Security Group Configuration on the server to be set.
insert image description here
After entering, there will be a default one, and then click Configure Rules
insert image description here
to check whether there is a port number configured for you in the incoming rules. If Just add one if you don’t have one.
insert image description here
The remote link server executes

firewall-cmd --list-ports

If this error occurs
insert image description here
, execute it first

systemctl start firewalld

and then execute

firewall-cmd --list-ports

insert image description here
If the list is empty, it means that your firewall has not released any ports.
For example, if we want to release port 80 here, execute

firewall-cmd --add-port=80/tcp

If the execution is successful, the console will output
insert image description here
and then enter again

firewall-cmd --list-ports

insert image description here
This is to see that the firewall has let go of port 80.

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/130141075