Record yourself how to build a cloud server from 0, you can access the files in the server through the public network ip

buy cloud server

This time I received a 15-day trial package link in Tencent Cloud , and newcomers can go to collect it.
insert image description here
insert image description here
After purchasing, log in to the management center. During this period, there are several scan codes for confirmation. Just follow the prompts
insert image description here
insert image description here
insert image description here
insert image description here
. You can check the initial password here, but it is recommended to modify the password in [More Operations]

Log in to the cloud server

If you log in with windows, use the [Remote Desktop Connection] that comes with win10 to
insert image description here
log
insert image description here
in
insert image description here

Cloud server installation java jdk and tomcat

Download java jdk and tomcat installation
and configure the environment variable java environment variable configuration, tomcat environment variable configuration
so that you can access it through [public network ip:8080/project/…/xxx.html]. Remember to complete the path.
Of course, two preparations are required here.

This project must be placed in the webapps folder of the tomcat installation directory

Open port 8080 in the [Security Group] of the cloud server management platform

insert image description here
insert image description here

I did a test here, so I bought a domain name link that costs one yuan a year from Tencent Cloud products

buy a domain name

insert image description here
insert image description here
Then you need to perform real-name authentication on this domain name. The specific authentication method can be found in the WeChat applet that is automatically added to WeChat after scanning the code when purchasing a domain name.
After certification, a review is generally required, which takes about 3 hours.

resolve domain name

Analyze on the cloud management platform.
Click the link below
insert image description here
insert image description here
insert image description here
to fill in the required information. Note that one of the record values ​​is the public IP assigned to you.
insert image description here
In this way, you can access the files in your cloud server through the domain name you resolved.

Finish


In the end, you will visit www.your domain name:8080/project/…/xxx.html in this form . Pro test is effective

Afterword

This is the first groping, and a record is made of the whole process. Later, I purchased an Alibaba Cloud server. The configuration environment also uses laragon and phpstudy,
which have their own advantages and disadvantages. Different people have different opinions.

Guess you like

Origin blog.csdn.net/tianxiaojie_blog/article/details/103513938