Server deployment (put static web pages on the Internet) "2"

How to put static web pages on the public network (windows version)

One purchase server

Personal recommendation Ali cloud buy into Ali cloud official website scan code after you log search cloud server ECS (Tencent followed CVM), and then choose to buy, if you are a student in school, then you can enjoy the benefits (point this) , Purchase interfaceafter buying something like this Insert picture description here, Then check the server and click Reset instance password to change the password. Then modify the security group and Insert picture description hereclick the configuration rule
Insert picture description hereto add the following threeInsert picture description here

Two remote connection server

Windows can use its own accessory to connect Insert picture description hereand enter the public ip address of the console, and then click the display option to enter the following figure. The Insert picture description hereInsert picture description hereuser name defaults to administrator, click on the connection to enter the password, (you may be prompted, just yes)
Insert picture description here
After connecting, it is probably a desktop with nothing. (I can only cut a small picture, it's probably so wide)Insert picture description here

3. Configure the environment on the cloud server and download tomcat

You can configure the running environment of java. I won't talk about this specific Baidu. (After downloading, copy it directly, then paste it in the server), and then download tomcat (the version is free, you don’t need to install it on your computer, just put the installation package on the server and install it), pay attention to the environment first Install tomcat.
Then find the address of tomcat, put the webpage in the ROOT folder in webapps, then go back here, open the bin folder, click startup to run the tomcat Insert picture description heresuccessfully, that’s it, Insert picture description here
and then you can access it on the external network (http//public network ip //Project location after ROOT)Insert picture description here

Four possible problems

Chinese garbled characters may appear when running tomcat. The solution is to open the conf folder under bin and open logging.properties with notepad. Just change all the encodings to GBK (mine is 4)
Insert picture description here

Guess you like

Origin blog.csdn.net/w_____w_____/article/details/106247893