Tomcat linux apt-get setup
Revision as of 13:00, 31 March 2015 by WikiFreak (talk | contribs) (Created page with "Category:Linux Category:Development This page describes how to setup Tomcat using your O.S repository's package. ♦ Note that the version in the repository is often...")
This page describes how to setup Tomcat using your O.S repository's package.
♦ Note that the version in the repository is often an old one. For instance, Tomcat8 might not be available yet in the repository.
Requirement
You must already have a Java Runtime.
Installation
Depending on your distribution, you might have a more recent version than Tomcat7. Please check it using apt-cache search tomcat
.
apt-get install tomcat7 tomcat7-admin tomcat7-common tomcat7-docs tomcat7-examples
On Debian, Tomcat is NOT registered as a service.
To overcome this, you can add a symlink for tomcat7:
ln -s /etc/init.d/tomcat7 /usr/bin/tomcat7
Start/Stop Tomcat on boot
To add Tomcat on boot just do:
cd /etc/init.d
update-rc.d tomcat7 defaults
To remove Tomcat from boot just do:
cd /etc/init.d
update-rc.d tomcat7 remove