权限不足
# sh startup.sh
[b]The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program[/b]
# chmod 777 -R /bin
# sh startup.sh
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.36
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.36
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.36/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/apache-tomcat-6.0.36/bin/bootstrap.jar
# sh startup.sh
[b]The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program[/b]
# chmod 777 -R /bin
# sh startup.sh
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.36
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.36
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.36/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/apache-tomcat-6.0.36/bin/bootstrap.jar
本文详细介绍了如何解决运行Apache Tomcat时出现的权限不足错误,通过正确配置BASEDIR环境变量和执行相应的权限修改命令,确保Tomcat能够正常启动。包括使用CATALINA_BASE和CATALINA_HOME等关键目录的正确设置,以及使用chmod命令调整文件和目录权限。
1486

被折叠的 条评论
为什么被折叠?



