[Gentoo Linux] Installing TomCat

Last update on August 5, 2009 09:28 AM by jak58
Published by jak58

[Gentoo Linux] Installing TomCat






The application server (Tomcat) is a component of the Jakarta project, which provides server solutions based on Java technologies, but keeping it as an Open Source application .

Installation


To install Tomcat on Gentoo use the command:

emerge tomcat 


Once the installation is finished starting, stopping and checking the status of the server will be via the commands:

# /etc/init.d/tomcat-6 start
# /etc/init.d/tomcat-6 stop
# /etc/init.d/tomcat-6 restart


To test the server, go to page http://ip_serveur:8080/
Note that Tomcat uses port 8080 by default and this, from version 6.
TomCat is installed by default at the following directories:
  • /usr/share/tomcat-6/
  • /var/lib/tomcat-6/


To add tomcat on boot, use the command:
# rc-update add tomcat-6 default

User Administration


To add or remove users, edit the file /etc/tomcat-6/tomcat-users.xml, below is an example:
<? xml version ='1 .0 'encoding =' utf-8 '?> 
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,manager"/>
<user username="admin" password="admin" roles="manager"/>
</tomcat-users>

Server parameters


By editing the configuration file located under the directory /etc/conf.d/tomcat-6, it is possible to customize several options for implementing the server.
Best answers for « Installing TomCat » in :
[Linux Ubuntu Hardy Heron]Installing tomcat6 Show [Linux Ubuntu Hardy Heron]Installing q Requirements Configuring apt-get Installation Notes To automatically install Tomcat 6 on Ubuntu proceed as follows Requirements It must first install a Virtual Machine #apt-get install sun...
Installing a network adapter Show Purpose The purpose of this article is to set up a network to enable data exchanges between computers, resource sharing and network games. Is it therefore necessary to install a network card in each computer that may be part of the local area...
Installation of game on Samsung mobile phone ShowInstallation of game on Samsung mobile phone Introduction Standard installation functioning on almost all Samsung models Alternative installation for specified models Introduction Games installed on Mobile are not usually recognised...
Installing Java under Ubuntu ShowInstalling Java under Ubuntu Issue Solution Issue By default, Firefox does not come with Java. Solution Open a terminal (Application Menu/ Accessories/ Terminal) and type in: sudo aptitude install sun-java6-jre sun-java6...
Why Windows is not detecting the 4 GB of RAM installed? ShowWhy Windows is not detecting the 4 GB of RAM installed? What can be done? Conclusion Windows XP or Vista 32-bit edition can not use 4 GB, there is nothing to do, it is a mathematical limit. 32-bit system can address: 2 to the...
Download Windows Installer ShowMicrosoft WindowsIinstaller is a service of installation and application configuration, allowing to manage the applications containing the MSI extension MSI. Windows Installer 3.1 is a secondary update of Windows Installer 3.0 published in...
Download Ext2 Installable File System ShowIf you currently have Windows running and you realize that you need some files for your work which you have stored on an Ext2 volume of your Linux installation, you no longer have to shut down Windows and boot Linux! Furthermore, Windows will now...
Intranet - Installing a DNS ShowPackages needed for installation A DNS (domain name server) is a server that links names to the IP addresses of computers on a network. In order to set up such a server, it is necessary to install bind and named. They can be downloaded as RPM files...
Intranet - Installing a mail server ShowIntroduction to installation The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with...
Installing a network card ShowGoal The goal is to set up a network in order to exchange data or play games on the network. Thus, it is necessary to install a network card on every computer that may become part of the LAN. The purpose of this tutorial is to help you to install a...