Install Tomcat7.0 on Ubuntu and run it automatically upon startup

Source: Internet
Author: User
Install Tomcat7.0 on Ubuntu and run it automatically at startup. install and install tomcat in green. Download a tomcat file and unbind it to the specified directory. Then, go to the bin folder in the tomcat directory and run sudo. /startup. sh to start 2. run tomcat7.0 automatically at startup and enter with the Root permission to enter and modify/etc/rc.

Install Tomcat 7.0 on Ubuntu and run it automatically upon startup

1. Install Tomcat7.0 

Generally, the version is green. Download tomcat7.0 and unbind it to the specified directory.

Go to the bin folder in the tomcat directory, and run sudo./startup. sh to complete startup.

2. automatically run tomcat7.0 at startup 

Use the Root permission to access and modify/etc/rc. local.

As follows:

#! /Bin/sh-e
#
# Rc. local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# Value on error.
#
# In order to enable or disable this script just change the execution
# Bits.
#
# By default this script does nothing.

/Media/D/Tools/tomcat7.0/bin/startup. sh


Exit 0

Note: Red is the project you want to start

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.