---
title: " How to setup tomcat in linux?"
author: "RobertLeeJesus"
date: "2008-07-25T21:44:47Z"
tags: []
slug: "how-to-setup-tomcat-in-linux"
draft: false
lastmod: "2008-07-25T21:44:47Z"
id: 219671
url: "https://hidefromall.iteye.com/blog/219671"
---

After downloading the Tomcat, you will set up something to make it work.

1\. Set the JAVA\_HOME to start the Tomcat.

 Add the follong lines into the /bin/catalina.sh

 #------------------------------------------------------------------------------  #Add by Robert Lee - Only the JAVA\_HOME is mandatory.

 JAVA\_HOME="../../jdk1.5.0\_15"  export JAVA\_HOME

 #------------------------------------------------------------------------------

2\. Make sure there is no space in the java path or tomcat path.

3\. Add the role for manager and administrator.    Add the following lines in /conf/tomcat-users.xml  &lt;role rolename="manager"/&gt;  &lt;role rolename="admin"/&gt;  &lt;user username="sys" password="manager" roles="admin,manager"/&gt;    Then you can log in the manager and administration interface by webconsole.