PHPz2017-04-17 12:05:18
The questioner is probably a beginner. No one cares about the questioner, so I can’t stand it anymore.
However, the title of the question is really unclear.
Let’s understand the problem as: How to deploy a locally written Java web project to the cloud so that it can be accessed through a domain name?
The following takes Tomcat and Baidu Open Cloud as examples
Enter http://developer.baidu.com/ Management Console -> Developer Service Management -> Create Project
Here I choose to use git. Copy the git address and use the clone command to copy the project first: git clone https://git.duapp.com/appidlq8tb5h74j. If you see ROOT.war, go to your local Tomcat -> Copy your project from the webapps directory to the appidlq8tb5h74j directory.
git add --all
git commit -m "第一次提交"
git push origin master
Click on Quick Deployment, http://mochasegmentfault.duapp.com/ (I deleted the project, after all, it costs 40 cents a day, ~~~~(>_<)~~~~) to view your project
PS: windows git download address http://git-scm.com/download/win