Short, Simple and Full guide to install tomcat6 on ubuntu 9.10

2010-03-06
程式設計

寫一下安裝tomcat6 的方法...在ubuntu 的套件中, 人們常常說有問題
剛安裝ubuntu 9.10 的可以試試下面的做法...apt-get 看來沒有出錯

apt-get install tomcat6
apt-get install tomcat6-admin
apt-get install tomcat6-common
apt-get install tomcat6-docs
apt-get install tomcat6-examples
apt-get install tomcat6-user

vi /etc/tomcat6/tomcat-users.xml
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<user username="xxx" password="xxx" roles="admin,manager"/>
</tomcat-users>

service tomcat6 restart

Simple enough?