1、根据说明tomcat5需要JRE5.0或JDK5.0,如果是1.4版本,需要从tomcat官方网站下载并安装补丁。
2、shell下运行./startup,发现错误
Cannot find ./catalina.sh
This file is needed to run this program
3、继续运行,错误
The BASEDIR environmentvariable is not defined correctly
This environmentvariable is needed to run this program
chmod +x *.sh解决。
4、管理用户密码
localhost:8080进入tomcat页面,说明安装成功。添加管理用户在conf/tomcat-users.xml文件里:
<role rolename="manager"/>
<role rolename="admin"/>
<user username="root" password="root" roles="admin,manager"/>
<user username="admin" password="admin" roles="admin,manager"/>