tomcat无法启动

问答中心分类: JAVAtomcat无法启动
匿名用户 asked 9 年 ago
[root@123/]# service tomcat restart
Stoping Tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.7.0_80
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin /tomcat-juli.jar
waiting for processes to exit
Starting tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.7.0_80
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin /tomcat-juli.jar
touch: cannot touch `/usr/local/tomcat/logs/catalina.out': Permission denied
/usr/local/tomcat/bin/catalina.sh: line 387: /usr/local/tomcat/logs/catalina.out : Permission denied
Tomcat is not running

4 Answers
oneinstack answered 9 年 ago
是不是用root用户手工启动过?没有用service tomcat start ,将 /usr/local/tomcat/logs/里面日志删掉试试。tomcat默认是一般用户www,如果还不行,试试chown -R http://www.www /usr/local/tomcat

匿名用户 answered 9 年 ago
按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀

匿名用户 answered 9 年 ago
按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀

匿名用户 answered 9 年 ago
按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀