Tencent cloud server deployment web project

1. First, you need to go to Tencent Cloud to buy a cloud server. Individuals can receive a 15-day trial version for free.

https://cloud.tencent.com/act/free

2. Click the Start menu -> Run on your computer and enter the "mstsc" command to open the remote desktop connection dialog box.

    Enter the public network IP of Tencent Cloud server in the input box , and you can view the public network IP in the cloud server cloud host

    After clicking the link, enter the administrator account and password (the account and password can be viewed in the message center’s website)

    After logging in, you can link to the desktop of the cloud server

3. In the cloud server, you need to download and install Tomcat, MySQL and JDK. If you have any problems in the process, you can Baidu yourself.

        There are some tips that I have found here, which are summarized at the end of the article.

Fourth, after the environment is configured, export the eclipse project into a war file, and then put it under Tomcat's webapps folder.

    Then you can import the database.

5. Start Tomcat, open the browser and enter http://localhost:8080...... Everyone knows that. It is the same as viewing the project published in Tomcat on your own computer. If it can be displayed, it means that the environment configuration is successful.

6. On your own computer cloud host-console page, click Security Group to add a security group.

    note! ! ! ! To create a new security group, select all ports to be released. After you create it, click Manage instance on the far right to add your cloud host and associate it.

7. When I did this, I tried to log in with the Internet IP on my computer and found that it was not possible. There is a crucial step in the end.

    Reprinted from others and stolen pictures https://www.cnblogs.com/diyunfei/p/6826557.html

Go back to the desktop of the cloud server, open the server manager, tools in the upper right corner, and select Advanced Security Windows Firewall

Click Windows Firewall Properties,

Select the public profile, set the inbound link to allow, and then confirm, the server configuration is complete.

Then you can change the localhost to the external network IP to log in.

If you want to log in using a domain name, you also need to register a domain name in Tencent Cloud .

8. Personal summary:

1. After I entered the cloud server, I felt that the built-in IE browser was not easy to use. First, I downloaded a Firefox browser.

2. For the installation packages required by Tomcat, MySQL and JDK, you can download them on your computer in advance, put them in any disk, and then click on the bottom left to display the options when the remote desktop is linked

Click on local resources, detailed information, you can check the disk to be displayed on the cloud server, here you can select the disk where you store the installation package.

However, the cloud server sent by Tencent has a small running memory, and some large files cannot be copied. They can be stored on the Baidu network disk and downloaded from the cloud server.

Guess you like

Origin blog.csdn.net/NicolasLearner/article/details/112918836