newest gadget info
 

Tomcat installation on Centos 5.4

At the office, we’re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I’m sure I’ve left out some important things, and I’m doubtful as to how production ready this is, but for our testing, it’s working out fine.

I’m using CentOS 5.3 for all of this, but I’m sure it will work with CentOS 5.4

yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps

After this, you need to edit the tomcat-users.xml file to create a new user.Using the above, this file ends up in /etc/tomcat5/tomcat5-users.xml and all that needs to be added is a line similar to the following..

user username="admin" password="p@ssw0rd" roles="admin,manager"

I can’t get wordpress to work with me on this, so you’ll need to wrap the above in angle brackets, the same as all the other lines in that file.
You can set username and password to whatever you’d like. After this, restart tomcat (not sure if this is needed) with service tomcat5 restart and off you go.

  • Share/Bookmark

This entry was posted on Wednesday, December 30th, 2009 at 7:29 am and is filed under info, internet, linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

 

Switch to our mobile site