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