Notes for upgrading Tomcat via email

Source: Internet
Author: User
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?

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.