| 6 | * [參考文件] [http://www.l-penguin.idv.tw/article/httpd-jk2-tomcat.htm Apache 及 Tomcat 的結合] |
| 7 | {{{ |
| 8 | oceandb:~# echo "deb http://free.nchc.org.tw/debian lenny main non-free contrib" > /etc/apt/sources.list.d/lenny.list |
| 9 | oceandb:~# apt-get install sun-java6-jdk tomcat5.5 tomcat5.5-admin tomcat5.5-webapps libapache2-mod-jk |
| 10 | oceandb:~# cat << EOF > /etc/tomcat5.5/tomcat-users.xml |
| 11 | }}} |
| 12 | {{{ |
| 13 | <?xml version='1.0' encoding='utf-8'?> |
| 14 | <tomcat-users> |
| 15 | <role rolename="admin"/> |
| 16 | <role rolename="manager"/> |
| 17 | <user username="${YOUR_NAME}" password="${YOUR_PASSWORD}" roles="admin,manager"/> |
| 18 | </tomcat-users> |
| 19 | EOF |
| 20 | }}} |
| 21 | {{{ |
| 22 | |
| 23 | oceandb:~# /etc/init.d/tomcat5.5 restart |
| 24 | }}} |