1, first in the Aliyun server to deploy a good Java environment, installation: JDK, database, Tomcat server, and then configure the Java operating environment
2. Package The Javaweb project into a. War file
3. Copy the. war file to the WebApps directory of the Tomcat server on the Aliyun server, for example, my: E:\Java\apache-tomcat-8.0.43\webapps
4. Click Startup.bat to start the Tomcat server (run the E:\Java\apache-tomcat-8.0.43\bin startup.bat file in the Tomcat Server bin directory)
5, in the local browser using localhost or local IP can be normal access to the project, but the use of Aliyun server public network IP but can not access the project
6, Problem analysis:
1. Most people may think that the Java environment in the Aliyun server is misconfigured, and then there is no clue, because this is not the key to the problem.
2. The second thought is the firewall, but after shutting down the firewall is still wrong, still can not access the project.
3. The port is occupied, the discovery is not the key point of the problem.
7, the solution steps:
1. Login to the Aliyun server background management, access the console, click on the deployment project that instance, click More--Select the following security group configuration
2. Click Configure Rules
3. Click the Add Security group rule and select "in direction" to fill in the information according to the picture
4. Click Add Security Group Rule, select "Out of direction" also so configure, the finished
8, the official case:
9, Problem solving
10, in any computer that can access the Internet to use the Aliyun services of the public network IP access to their own projects, such as: http://59.110.164.217:8080/Water/main.jsp such a writing is wrong: http://localhost : 8080/water/main.jsp,ip address must be public network IP, if the use of private IP is not accessible, OK, there are other problems, contact me.