1 错误描述
[email protected]:~$ cd /opt/apache-tomcat-7.0.57 [email protected]:/opt/apache-tomcat-7.0.57$ bin/startup.sh Using CATALINA_BASE: /opt/apache-tomcat-7.0.57 Using CATALINA_HOME: /opt/apache-tomcat-7.0.57 Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/temp Using JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jre Using CLASSPATH: /opt/apache-tomcat-7.0.57/bin/bootstrap.jar:/opt/apache-tomcat-7.0.57/bin/tomcat-juli.jar touch: 无法创建"/opt/apache-tomcat-7.0.57/logs/catalina.out": 权限不够 bin/catalina.sh: 385: bin/catalina.sh: cannot create /opt/apache-tomcat-7.0.57/logs/catalina.out: Permission denied [email protected]:/opt/apache-tomcat-7.0.57$ bin/shutdown.sh Using CATALINA_BASE: /opt/apache-tomcat-7.0.57 Using CATALINA_HOME: /opt/apache-tomcat-7.0.57 Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/temp Using JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jre Using CLASSPATH: /opt/apache-tomcat-7.0.57/bin/bootstrap.jar:/opt/apache-tomcat-7.0.57/bin/tomcat-juli.jar 一月 02, 2015 3:23:28 下午 org.apache.catalina.startup.Catalina stopServer 严重: Catalina.stop: java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:466) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457) [email protected]:/opt/apache-tomcat-7.0.57$
2 错误原因
3 解决办法
时间: 2024-10-26 02:27:24