Recently, Alibaba cloud launched a free student cloud server. As a student party, I did not hesitate to lead one.
Due to the previous experience of using Tencent cloud, it is still very easy to configure the environment, using the popular Windows Server + xampp.
But there was a problem during the visit:
Remote connection is OK, and the access to localhost is OKInternet access has been timeout。
At first, I thought that port 80 was blocked. I tried to change the HTTP port, but it still didn’t work. The Internet couldn’t access it.
Then I went to alicloud’s background and found that there was a “security group” option,
Click in and have a look. It turns out that the port is not open,
Ports 3389 and 22 are enabled by default, but 80443 and 3306 are not,
Therefore, click add security group rule:
Fill in the port. Do not change the others,
Authorization object 0.0.0.0/0 refers toAny address can be accessed
Then you can access the HTTP Internet,
If you need the functions of HTTPS and MYSQL, you can open 443 and 3306 by yourself.
Tencent cloud has no port restrictions. Alibaba cloud only opens 3389 (Remote Desktop) and 22 (SSH) ports by default.