java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (許可權不夠),tomcat7.0.57
1 錯誤描述
youhaidong@youhaidong:~$ cd /opt/apache-tomcat-7.0.57youhaidong@youhaidong:/opt/apache-tomcat-7.0.57$ bin/startup.shUsing CATALINA_BASE: /opt/apache-tomcat-7.0.57Using CATALINA_HOME: /opt/apache-tomcat-7.0.57Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/tempUsing JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jreUsing CLASSPATH: /opt/apache-tomcat-7.0.57/bin/bootstrap.jar:/opt/apache-tomcat-7.0.57/bin/tomcat-juli.jartouch: 無法建立"/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 deniedyouhaidong@youhaidong:/opt/apache-tomcat-7.0.57$ bin/shutdown.shUsing CATALINA_BASE: /opt/apache-tomcat-7.0.57Using CATALINA_HOME: /opt/apache-tomcat-7.0.57Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/tempUsing JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jreUsing 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)youhaidong@youhaidong-ThinkPad-Edge-E545:/opt/apache-tomcat-7.0.57$
2 錯誤原因
3 解決辦法