In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use the image to deploy the Java Web project, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Mirror deployment Java Web project
As an open source and free Java Web server, Tomcat is often used as a tool for Web development. It can host Java Web applications consisting of Servlet, JSP pages (dynamic content), HTML pages, JS, stylesheets, and pictures (static content).
Deployment mode
Deploying Java under Ali CVM provides three deployment methods:
JAVA image deployment
One-click installation package deployment
Manual deployment (source code compilation installation / YUM installation)
Generally speaking, it is recommended to use image deployment, especially for beginners, which is faster and easier to use (Aliyun's cloud market provides rich image software, click to view). Installation package deployment and manual deployment are suitable for users who have a basic understanding of Linux commands, and can meet the requirements of user personalized deployment. This article focuses on mirroring and manual deployment.
Mirror deployment
Click JAVA Environment (CentOS7.3 Nginx Tomcat8 JDK) to enter the mirror details page.
Click Buy now and follow the prompted steps to purchase the ECS instance.
Log in to the ECS Management console.
In the left navigation bar, click the instance to go to the ECS instance list page.
Select the region where the purchased ECS instance is located, find the purchased ECS instance, and obtain the public network IP address of the instance in the IP address column.
After entering the IP address of the http:// public network in the browser address bar, collect the online documents.
Note: if the following page cannot be displayed after entering the public network, please check that port 80 has been opened in the public network entry direction of the security group.
Log in to the Linux server using Putty, and refer to connect to the Linux instance.
Note: if the password is not set when the instance is created, root needs to reset the instance password.
Use the Winscp tool to put the Java code into / data/wwwroot/default.
The default Tomcat is run as a normal www user, change the website code permissions to www, and execute the command:
Chown-R www.www / data/wwwroot
Restart Tomcat.
Service tomcat restart
Enter the public network IP address in the browser address bar to complete the verification.
The above is all the contents of the method of using the image to deploy the Java Web project, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.