1.wget http://apache.ntu.edu.tw/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.tar.gz
2.tar zxvf apache-tomcat-6.0.16.tar.gz
3.sudo mv ./apache-tomcat-6.0.16 /usr/share/apache-tomcat-6.0.16
4.sudo /usr/share/apache-tomcat-6.0.16/bin/./startup.sh
Port setting
1.sudo vi /usr/share/apache-tomcat-6.0.16/conf/server.xml
2.set whatever port you want
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Tomcat admin setting
1.sudo vi /usr/share/apache-tomcat-6.0.16/conf/tomcat-users.xml
2.set your admin's username & password
<user username="yourUsername" password="yourPasswrod" roles="admin,manager"/>
refer to here
沒有留言:
張貼留言