Version 2 (modified by waue, 16 years ago) (diff) |
---|
安裝tomcat
- 解壓縮到 /opt
- 環境路徑設定:
在/etc/bash.bashrc最後一行加入
export JAVA_HOME=/usr/lib/jvm/java-6-sun
- 直接執行 $tomcat/bin/startup.sh
- [http:localhost:8080 預設歡迎畫面]
開啟admin介面
vim /opt/tomcat/conf/tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <user username="waue" password="crypto" roles="manager"/> </tomcat-users>
重開:
$tomcat/bin/shutdown.sh $tomcat/bin/startup.sh