search

Home  >  Q&A  >  body text

java-ee - java web 项目如何部署到互联网中 通过输入域名访问?

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

高洛峰高洛峰2770 days ago684

reply all(2)I'll reply

  • PHPz

    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

    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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 12:05:18

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

    reply
    0
  • Cancelreply