This article shows you how to deploy a web project on a cloud server. The content is concise and easy to understand. It will definitely make your eyes shine. Through the detailed introduction of this article, I hope you can gain something.
After the web projects of many webmasters or enterprises have been built, they will want to deploy them on the server. To deploy a web project on a cloud server, you must first purchase a cloud server.
Add security group rules
After buying a cloud server, you need to set up security group rules. The security group provides similar virtual firewall functions in the cloud to set up network access control for single or multiple instances. It is an important means of security isolation. Add security group rules to control the outbound and inbound directions of all cloud host instances under the security group.
Configure JDK and Tomcat on the cloud server
Connect to the cloud server through the MobaXterm tool, of course, you can also use other tools such as putty to connect. Install JDK and tomcat. After Tomcat is started, you can use the public network ip+:8080 of the cloud server to view the Tomcat page. If your computer cannot open the above URL, first check whether your server CentOS has closed the firewall or opened the 8080 of the firewall port.
upload local web projects
Upload the locally built web project and .war file to Tomcat's web apps folder. After a few seconds, you can access the web project through the public network IP. At this point, the deployment of the web project on the server is complete.
The tomcat service is enabled on the cloud service;
Enter http://your IP address: your open port number in a browser with the internet. The default is 8080. You can easily browse Web projects on any Internet-enabled browser in the world.