Java install tomcat as a service

I plan to develop an application installer that, as part of the installation, installs Apache Tomcat on Linux. Does anyone know how I can programmatically install Tomcat as a service on Linux. Best

+3
source share
3 answers

If you already have Tomcat installed, you probably need to run the launch script for Tomcat in /etc/init.d

This article has a decent script run.

http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/

+4
source

Tomcat7 (stable release 2011 January) For the Debian database: Tested on Ubuntu 14.04.

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-docs tomcat7-admin 
sudo apt-get install libtomcat7-java tomcat7-common tomcat7-examples

Start the tomcat server:

sudo service tomcat7 restart

, tomcat , URL- http:/127.0.0.1: 8080 :

w3m http://127.0.0.1:8080

...

+2

If you are on a debian based distribution just type

sudo apt-get install tomcat6 tomcat6-admin tomcat6-examples

and you will have a fully functional tomcat ( example for Ubuntu 10.04 )

+1
source

All Articles