javaWeb project to deploy a cloud server Ali

1. The cloud server configured jdk + eclipse + tomcat

2. War export the project to install the Tomcat webapps folder:

Right-click the project -> Export-> WarFile-> Destination fill in the fields next to the Tomcat "webapps" folder -> Save -> Finish

3. Restart Tomcat in eclipse

4. Configure Ali cloud instance security group:

Add the security group rules (Port Range: 8080, an authorization object: 0.0.0.0/0)

Ingress direction:

 

Egress direction:

 

 

 5. In the browser input: own public network ip + port number 8080+ Project Name

Such as: xxx.xxx.xxx.xxx: 8080 / HelloWorldWeb

6.over

 

Guess you like

Origin www.cnblogs.com/ssyh/p/10953747.html
Recommended