Linux Server Deployment Java project

Source: Internet
Author: User
Tags heidisql

Today the leader gives a task to deploy the Java project to the LIUNX server. The steps are now documented for easy viewing later.
Project Deployment Server steps:
Server information:
Elastic IP Address: xx.xx.xxx.xx
Account Number: Root
Password: [email protected]

Database information:
Database connection IP Address: xx.xx.xxx.xx
Port number: 3306
Account Number: Root
Password: BDQN
Environment: Linux, already installed Tomcat, MySQL, and Java
Required Software: Xshell---The terminal that connects the server
Heidisql---A visualization tool for connecting to a database
WINSCP-------deployment of Project-to-server visualization tools
The above software can find the same function of the software can be replaced or
Steps:
1. Locate the Database Visualizer Heidisql:

2. Open the connection server:

3. Click "New"-----"create session-----in the root category" and as shown:

4. Then create a new database and import the SQL file:

Display create a database, the name can be arbitrary, such as:

At this point, the database is already built and the SQL file is now imported:

-----------------------The data import of the above database is complete, the following is the operation part of the Operation File Project deployment:

There are two War pack files
One is the project file: Tireinfo.war; One is the page display file: Tireinfo_html.war

Steps:
1. Using the WINSCP software:

2. Open the software and connect to the server:

After entering the server, click:

Then find:/topsun/tomcat/apache-tomcat-9.0.6/webapps This path, put just two war packages into it. Direct CTRL + V

----------at this point, we need to turn on our other software Xshell. It is the key software for deploying projects.
Steps:
1. Open the software and connect to the server:

---------------------The above steps, our project has been deployed to the server. Reopen the WINSCP software and locate the path where the war package is placed, as shown in:


* * at this point, in fact, we have completed the deployment of the project, however, the two war files corresponding to the server address has not changed, we now need to change, find out the two war files automatically extracted from the folder. Find the corresponding file and go to change it.
Open the Tireinfo_html folder, locate the Style.js file below the web, and modify the path. As shown in the following:

Open the Dwz_tireinfo folder, such as:

-------------------------all of the above steps are complete, you will need to restart the server.

Finally, we have access to the page:
Http://49.4.22.53:8080/TireInfo_HTML

Linux Server Deployment Java project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.