Notes for upgrading Tomcat via email: 1. download the new version of Tomcat. Stop the service and back up
# Pkill-9 safestartwd
# Pkill-9 Watchdog
# Cd/turbomail/web/bin
./Shutdown. Sh
# Mv/turbomail/web/turbomail/webbak
3. Upgrade procedure
3.1 decompress the downloaded Tomcat file into a web folder and upload it to the/turbomail/directory.
Then go to the/turbomail directory, delete the root of the downloaded new tomcat, and copy the/turbomail/webbak/webapps/root directory to/turbomail/web/webapps, the command is as follows:
CD/turbomail Rm-RF/turbomail/web/webapps/root (note that the/turbomail/Web here is your new Tomcat package, which is not included in turbomail) CP-r/turbomail/webbak/webapps/root/turbomail/web/webapps/ |
3.2 edit/turbomail/web/bin/startup. Sh to change the JDK path. The command is as follows:
# Cd/turbomail/web/bin/ # Vi startup. Sh |
3.3 edit/turbomail/web/bin/Catalina. Sh to change the Java memory. The specific command is as follows ::
# Cd/turbomail/web/bin # Vi Catalina. Sh Add java_opts = "-djava. AWT. Headless = true-xmx512m". For details about Java memory, see/turbomail/web/webbbak/bin/catalia. Sh. |
3.4 run the following command to start the Web Service ::
# Cd/turbomail/web/bin ./Startup. Sh |
After the upgrade is completed, testWebAccess normal?