`

Linux下tomcat安装

阅读更多

Linux下tomcat安装

 

1、把Tomcat6.0放在usr下

2、配置path,我用的方法是修改prfile文件,

  如果你的计算机仅仅作为开发使用时推荐使用这种方法,因为所有用户的shell都有权使用这些环境变量,可能会给系统带来安全性问题。

(1)用文本编辑器打开/etc/profile

(2)在profile文件末尾加入:

export JAVA_HOME=/usr/share/jdk1.5.0_05

export PATH=$JAVA_HOME/bin:$JAVA_HOME/lib:$PATH

(3)重新登录

 

 

 常见错误解决:

问题1、"Neither th JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program"

解决办法:说明JAVA_HOME没有配置正确,JAVA_HOME前面一定要加export ,用echo $JAVA_HOME,查看是否正确。

 

问题2、The BASEDIR environment variable is not defined correctly
This
environment variable is needed to run this program

解决办法:是因为此用户没有执行权限引起的,
把$CATALINA_HOME/bin目录下所有.sh文件添加一个可执行权限。
 chmod 755 /usr/share/tomcat/bin/*.sh

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics