匿名用户 提问于 2015-12-05

[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 答案

发布
管理员 2015-12-06

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

#1
发布
匿名用户 2015-12-07

按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀

#2
发布
匿名用户 2015-12-07

按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀

#3
发布
匿名用户 2015-12-07

按照你的方法做了,删掉日志不行,试了chown -R http://www.www /usr/local/tomcat 还是不行呀

#4

请登录或者 注册 来提交答案