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) , after buying something like this , Then check the server and click Reset instance password to change the password. Then modify the security group and click the configuration rule
to add the following three
Two remote connection server
Windows can use its own accessory to connect and enter the public ip address of the console, and then click the display option to enter the following figure. The user name defaults to administrator, click on the connection to enter the password, (you may be prompted, just yes)
After connecting, it is probably a desktop with nothing. (I can only cut a small picture, it's probably so wide)
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 successfully, that’s it,
and then you can access it on the external network (http//public network ip //Project location after ROOT)
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)