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