java-ee - java web 项目如何部署到互联网中 通过输入域名访问?
高洛峰
高洛峰 2017-04-17 12:03:18
0
2
690

怎么部署web项目,申请域名或者将项目部署到云端,通过域名访问?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
PHPzhong

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

1. Create project

Enter http://developer.baidu.com/ Management Console -> Developer Service Management -> Create Project

2. Upload local 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

洪涛

I am a newbie, is there any way that I don’t need to pay?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template