Deploying war packages on Linux servers

Source: Internet
Author: User

The first step:
Export War file, fight a war package
Project, Export-Right, war file, input generate war package path, finish

Step Two:
SSH Connection Server
Host: Xxxxxxxxxxxx
Account Number: Username
Password: password

Step Three:
Put the war pack into the/gxxj/apache-tomcat-6.0.44-ins

Fourth Step:
Close Tomcat (shutdown.sh) first, or the war will automatically unzip, always delete the folder
Cd/gxxj
CD apache-tomcat-6.0.44-ins/
CD bin
./shutdown.sh-Stop the Tomcat service
Ps-ef|grep Tomcat--see if the Tomcat process is deactivated
Kill-9 30205--If not stopped

Fifth Step:
Back up the previous war package (the war package is associated with the INS folder and the folder disappears after the war package is renamed)
Ins.war.bak

Sixth step:
Delete the folder, move the new war package to WebApps, restart Tomcat
Cd.. /webapps/
RM-RF ins--Deleting folders
Cd..
MV Ins.war webapps/--Move the package to the WebApps directory
CD bin
./startup.sh
To view logs when you start the edge:
./startup.sh;tail-300f. /logs/catalina.out
When replacing/backing up a folder, you cannot just modify the folder name, compress the folder, and then delete the original folder.
Compressed folder: Zip-r file name needs to be compressed after compression
Example: Zip-r GISutilzip20170105 gisutil

Deploying war packages on Linux servers

Related Article

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.