linux启动tomcat异常:The BASEDIR environment variable is not defined correctly
来源:互联网 发布:阿里云域名管理密码 编辑:程序博客网 时间:2024/04/29 02:56
linux启动tomcat异常:The BASEDIR environment variable is not defined correctly
Linux下安装Tomcat(apache-tomcat-6.0.29.zip):
操作系统:Redhat Linux 5
1、安装Tomcat
解压缩apache-tomcat-6.0.29.zip到任意一个有权限的目录即可,如/home/its/apache-tomcat-6.0.29。
2、下载安装JDK(jdk1.6.0_24-linux-i586.bin ):
下载后执行./jdk1.6.0_24-linux-i586.bin命令安装,假设安装后路径为/home/its/jdk1.6.0_24
设置环境变量:vi ~/.bash_profile如下:
JAVA_HOME=/home/its/jdk1.6.0_24
PATH=$PATH:$HOME/bin
PATH=$JAVA_HOME/bin:$PATH
CLASS_PATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export CLASS_PATH
export TOMCAT_HOME=/home/its/apache-tomcat-6.0.29
export CATALINA_HOME=/home/its/apache-tomcat-6.0.29
export PATH
注: 红色字体 部分为必须,其他设置非必须。
3、启动Tomcat
$ cd /home/its/apache-tomcat-6.0.29/bin
$ ./startup.sh
报错如下:
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
解决办法:
添加/home/its/apache-tomcat-6.0.29/bin下所有.sh文件可执行权限如下:
$ cd /home/its/apache-tomcat-6.0.29/bin
$ chmod +x *.sh
重新启动Tomcat即可。
- linux启动tomcat异常:The BASEDIR environment variable is not defined correctly
- linux启动tomcat异常:The BASEDIR environment variable is not defined correctly
- linux下启动tomcat报错:The BASEDIR environment variable is not defined correctly解决方法
- linux启动tomcat报:The BASEDIR environment variable is not defined correctly
- Linux下启动tomcat 6.x 提示The BASEDIR environment variable is not defined correctly
- linux下tomcat启动报错The BASEDIR environment variable is not defined correctly
- Tomcat启动报The BASEDIR environment variable is not defined correctly
- mac下启动tomcat报错:The BASEDIR environment variable is not defined correctly
- linux下tomcat出现The BASEDIR environment variable is not defined correctly
- The BASEDIR environment variable is not defined correctly
- Linux下Tomcat启动报 The BASEDIR environment variable is not defined
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- The BASEDIR environment variable is not defined correctly This environment variable is needed to ru
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program
- 多线程中的事件对象
- 数据库索引
- ajax实现无刷新时时写入数据库
- VS2008下用MFC 的MSComm控件编写串口程序
- Linux驱动程序学习步骤经典收藏
- linux启动tomcat异常:The BASEDIR environment variable is not defined correctly
- 组织多目录的 Makefile 和一些小问题
- Winform 解决方案中两个工程的调用/在VS2010如何方便地重命名一个项目
- CheckSum算法思想
- 真正优秀的程序员有哪些与众不同之处?
- Grand Central Dispatch简介
- excel2007如何解决双击打开excel文件出错问题
- GCC
- Ubuntu 12.04下安装QT 4.0