RedHatTomcat is automatically started upon startup

Source: Internet
Author: User
In RedHatLinux, Tomcat is automatically started when it is started. 1. Set system-level environment variables: Modify the/etc/profile file [root @ localhost ~] # Add JAVA_HOME =/usr/java/jdk1.6.0 _ 12exportJAVA_HOME to the vi/etc/profile file and exit the storage disk. 2. You must set/etc/rc. d/rc. local if you want to start tomcat automatically.

In RedHat Linux, Tomcat is automatically started when it is started.

1. Set system-level environment variables:
Modify the/etc/profile file
[Root @ localhost ~] # Vi/etc/profile
Add the following to the file:
JAVA_HOME =/usr/java/jdk1.6.0 _ 12
Export JAVA_HOME
Save the disk and exit.

2. You must set the/etc/rc. d/rc. local file to automatically start tomcat upon startup.
[Root @ localhost ~] # Vi/etc/rc. d/rc. local
Add the following to the file:
JAVA_HOME =/usr/java/jdk1.6.0 _ 12
Export JAVA_HOME
/Tomcat5/bin/startup. sh (Tomcat installation path in linux)
Save disk and exit
Restart the system [root @ localhost ~] # Reboot

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.