In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to put the Java project on the cloud server". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Deploying a simple Java project to a CVM generally requires three steps: 1. Develop the project locally, and then package it, such as war files. 2. Configure the CVM environment, such as installing java environment, Tomcat server, MySQL database, etc.; 3. Throw the packaged project into the Tomcat server and import the database.
After purchasing a CVM, install the pagoda panel. The process is simple. For more information, please see the pagoda panel installation tutorial.
In order to ensure that you can log on to the background, it will not be intercepted by the firewall. The pagoda panel must release more than 8888 888 80 ports. If you want to access the remote database 3306, you must also release it. If you want to use the ftp tool to release 21J SSH release 22, configure HTTPS release 443 and, of course, Tomcat, the default port 8080 should also be released.
Java project operating environment, at least need JDK, Tomcat, MySQL these three.
In the pagoda panel, we can install it directly. It is recommended to install Tomcat 8 (will have its own installation jdk1.8) or Tomcat 9, if you install Tomcat7 (will bring its own installation jdk1.7), then MySQL must be installed, the version is casual. Of course, if you want to make it easy to manage the database, you can download another phpmyadmin, you need to press nginx and php first, which may take up some memory.
The directory where Tomcat is installed is: / www/server/tomcat
Once you have installed tomcat in the java project manager, you can download the war source code. Find the location of the webapps of tomcat, download it directly, and it will be decompressed automatically. After downloading, refresh it, you can extract the war file.
Add a project
After the previous preparatory work is done, you can add a project to the Java Project Manager, which is similar to a new website. Once determined, the project is added.
This is the end of the content of "how to put the Java project on the cloud server". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.