配置并运行 Tomcat 服务器(入门整理)
by BeanSoft@126.com
安装tomcat后,启动不了.
错误提示:
# ./startup.sh
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
原因:Linux上文件的执行权限造成的.很多文件不能运行.
解决办法:
cd $CATALINA_HOME/bin
chmod u+x *
这个是普通用户会出现这种问题, 如果是 root 或者超级用户, 只需要
chmod u+x *.sh.