First of all, I declare that I don’t want to read this article Xiaobai. You can’t read it. Many people come up with nothing, so they want to carry a website first. Then many bloggers talk about the process step by step from the purchase. What's the point? Most people just give up when they see such a troublesome process, or if there are some errors in the middle. The blogger learned to carry the webpage. From the beginning, he learned that it took nearly two weeks to successfully carry the webpage for the first time. If you want to carry the webpage is just a hothead, I advise you to wash and sleep as soon as possible.
Purchase Alibaba Cloud Server
Go directly to the official website of Alibaba Cloud to buy, or the method of prostituting Alibaba Cloud server is also attached in my previous blog. I won’t go into too much detail here.
Install the pagoda panel
The Linux system strongly recommends installing a pagoda panel. It is super convenient to operate your own Linux server on the windows operating system. The installation method is also available on the Alibaba Cloud official website. If you have done basic learning on the Alibaba Cloud official website, you should already know it. But let me give you the address https://developer.aliyun.com/course/2218?spm=a2c6h.14089369.J_2497364210.7.567c1efc5luVdH Now suppose you have completed the installation.
Install the necessary environment
Including jdk and tomcat
with the pagoda panel, the installation is very convenient. First, log in to your pagoda panel, find the terminal on the left, click directly to log in to your Linux server, and then right-click and paste yum -y install java-1.7.0 -openjdk, then wait for a moment to know that complete appears and the installation is complete. Since the blogger has already done it, I can’t attach a screenshot to everyone.
Then install tomcat, just download one directly from Baidu. Many people always say that Baidu downloads are all bundled software and all viruses. Don't you never download things from Baidu again. These are all excuses. I always want to give up on prostitution. There are some tedious steps to download this file, but for those who want to learn, this is not a problem. If you don’t really want to learn, give up as soon as possible. After downloading to a local computer, you can easily upload to a remote computer using the pagoda panel.
Select a folder (remember this folder) and drag the downloaded compressed file into it and
start uploading. The transmission will be completed soon. Then find the file you uploaded and right click to decompress it. Then find the decompressed file, right click to rename it and name it tomcat. Click in to find the bin folder, and click in again. Find the startup.sh file. Record his file address,
then copy it to the terminal and add startup.sh and press
Enter to run it successfully. Then log in to <your public network IP>:8080 to check that
this page appears, indicating that the installation is successful.
Then go back to the tomcat file, click in to find the webapps folder, click in to find the root file, click in, upload your HTML file in this directory, and then change your HTML file to the default name index.html. Then you can revisit <your public network IP>:8080. Check the web page you deployed. Attach my results.
Since my domain name registration is still under review, I won’t give you my website this time.
Okay, the above information is not important, here is the point.
There are a lot of problems when carrying HTML. Now bloggers will answer the questions they have encountered.
Possible problem
The first one to run startup.sh was rejected. This belongs to restricted permissions, and you need to modify the permissions in the directory where startup.sh is located.
Change to the directory of their own, the next line appears indicating that the landing bin directory and then pasted directly chmod u+x *.sh
run
after the transport start startup.sh again. This problem is not very common. Not necessarily encountered, the main problem is that it cannot be opened when accessing ip. Most of the reason on the network is that port 8080 is not open, just open it. If you don't even know how to configure port rules, give up as soon as possible. The blogger is very troublesome. After I opened port 8080, I couldn't access it normally. After consulting a lot of information, it is necessary to temporarily turn off the firewall of the server *. (Mostly for this reason) As for how to turn off the firewall, it is easy to search for a method. There may be other problems with deploying HTML that bloggers have not encountered. Welcome to leave a message to discuss.