setup tomcat5 in CentOS

sudo yum install *tomcat5*

 

/etc/init.d/tomcat5 start

test  http://localhost:8080

 

/etc/init.d/tomcat5 stop

 

edit /etc/tomcat5/tomcat-users.xml as

<tomcat-users>  

 <role rolename="manager"/>  

<role rolename="tomcat"/>  

<role rolename="role1"/>  

<user username="tomcat" password="tomcat" roles="tomcat"/>  

<user username="admin" password="admin" roles="manager,role1"/>  

<user username="role1" password="tomcat" roles="role1"/>

</tomcat-users>

 

/etc/init.d/tomcat5 start

 

website:

/var/lib/tomcat5/webapps

 

posted @ 2012-02-09 22:36  greencolor  阅读(180)  评论(0编辑  收藏  举报