解决linux使用./startup.sh启动tomcat报错没日志的问题
解决方法:
可以使用./catalina.sh run &命令启动tomcat,在命令行窗口可以输出日志,我们可以先使用./catalina.sh run &命令排查启动tomcat失败问题。
我的错误日志:
Using CATALINA_HOME: /usr/local/java/tomcat7_files
Using CATALINA_TMPDIR: /usr/local/java/tomcat7_files/temp
Using JRE_HOME: /usr/local/java/jdk1.7.0_80/jre
Using CLASSPATH: /usr/local/java/tomcat7_files/bin/bootstrap.jar:/usr/local/java/tomcat7_files/bin/tomcat-juli.jar
./catalina.sh: line 369: /usr/local/java/jdk1.7.0_80/jre/bin/java: Permission denied
./catalina.sh: line 369: exec: /usr/local/java/jdk1.7.0_80/jre/bin/java: cannot execute: Permission denied
从上面日志可以知道没权限访问安装的jdk文件,所以使用chmod +x *赋权限。
本文链接:http://www.yayihouse.com/yayishuwu/chapter/1737