两口居|简约而不简单:技术

业攻于专 专于技术:Linux、C/C++编程、嵌入式、网站设计

导航

« rpm使用技巧Grub error:Cannot mount selected partition启动错误的解决 »

linux上安装tomcat5

安装软件最好的习惯当然是先看readme了.tomcat5只需要下载压缩包,解压就可以运行。说明文件为:running。
1、根据说明tomcat5需要JRE5.0或JDK5.0,如果是1.4版本,需要从tomcat官方网站下载并安装补丁。
2、shell下运行./startup,发现错误

Cannot find ./catalina.sh
This file is needed to run this program

这个明显是sh文件没有运行权限。chmod +x catalina.sh,ok.
3、继续运行,错误

The BASEDIR environmentvariable is not defined correctly
This environmentvariable is needed to run this program

找了半天没有解决,包括手动export BASEDIR变量都不行。后来发现bin下面的.sh文件都没有x权限,晕倒。。。
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"/> 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Tags

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722 Using ThinkTwice Theme Designed By Sino Blog

Copyright www.liangkou.cn | 两口居:技术. Rights Reserved.