Questions about how to put the Java Web online and deploy it to a public network so that people all over the world can access it. Small series will be made serialization, complete process introduction.
1. In myeclipse to develop a good project, packaged into the war format, the students will not refer to the following
Http://zhidao.baidu.com/link?url=Gb0OV9pHiDtJr8nyjPrnSA65g49I4TEAn2N3pwXsxzVsCaX0gJ8RQZHQ2GmDrmdM0ltoBdCPYEtT1iSawcedcK
2. Buy cloud server, recommend to Aliyun Purchase (ECS), tutorials are as follows
Http://jingyan.baidu.com/article/4e5b3e195ae68a91901e2402.html
The last step of the tutorial the remote connection does not need to look, the following talk about remote connection, just buy a Aliyun server on the line
Note: Explain what a cloud server is. is another computer, the computer never shut down, never ever net.
3. Log in to your Aliyun server, the following is a tutorial
Aliyun server to purchase Linux systems: http://jingyan.baidu.com/article/84b4f565f3d99260f7da3271.html
Purchase a Aliyun server for Windows (win2012): http://www.imaoye.com/article/aliyunECS.html (This tutorial is a problem with remote connectivity, but login included, ignore the first two charts)
4. Remote connections (in Windows, for example, because Windows is relatively new to beginners)
Http://jingyan.baidu.com/article/cd4c297914be1e756e6e60c3.html
5. Configure the Java Web environment (for example, Windows, because Windows is relatively new to beginners)
After you successfully connect the Aliyun server, the Windows system has a graphical interface, he already has an IE, you can download Jdk,tomcat and MySQL, and then install and configure the environment variables (installation is not said, to learn Java Web students too simple) during the period you may encounter some problems, For example, IE and your computer ie not the same, the server IE received security protection, a lot of things (links) can not download, this is no way, can only one try.
Of course, if want to lazy, can not download, directly to your computer jdk,tomcat,mysql copy paste to the server, yes. This is the benefit of remote connectivity, can be directly manipulated (small series do not know why)
Note: MySQL database data can be knocked again, can also be exported from the local MySQL, copied to the server inside, and then guide the server MySQL.
6. Publish the Project
In your local Computer browser open, input http://ip:8080/, where http://is fixed, IP for you to buy the Aliyun server extranet ip,8080 is your Tomcat's port number. Enter, you will see the Tomcat interface, which has a Tomcat manager point below, the interface will prompt you to enter your server T omcat user and password (in the installation will be prompted to create the user, did not create the unloading load and then create, must have a user), After entering another interface to Tomcat, click on a "Browse" button (the interface has only one Chinese button), select the first step of the war file, and then click on the button under the "Deploy" button, a few seconds later, the interface will refresh.
After refreshing, you can enter in any computer with network: http://ip:8080/application/... (the URL is the same as the URL you are developing the project, just replace the localhost with the server's IP), you can access your project.
7. At this point, you can access, but the access path is not like someone else: www.baidu.com cool, ... com/.cn/.net/... Called Domain name, you need a domain name to replace your http://ip:8080/...
7.1 Buy domain name, still buy in Aliyun. Tutorial: http://jingyan.baidu.com/article/ab69b270dc91492ca7189f03.html
7.2 Domain name record. Tutorial: http://jingyan.baidu.com/article/925f8cb8176a49c0dde056c6.html
7.3 Domain name resolution. Tutorial: Http://jingyan.baidu.com/article/676629973f96f454d51b849b.html
After parsing, it's over.
8. At this point, you can access your website under the Network (project)