程序员人生 网站导航

java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够)

栏目:服务器时间:2015-01-10 08:56:44

1 毛病描写

youhaidong@youhaidong:~$ cd /opt/apache-tomcat⑺.0.57 youhaidong@youhaidong:/opt/apache-tomcat⑺.0.57$ bin/startup.sh Using CATALINA_BASE: /opt/apache-tomcat⑺.0.57 Using CATALINA_HOME: /opt/apache-tomcat⑺.0.57 Using CATALINA_TMPDIR: /opt/apache-tomcat⑺.0.57/temp Using JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jre Using CLASSPATH: /opt/apache-tomcat⑺.0.57/bin/bootstrap.jar:/opt/apache-tomcat⑺.0.57/bin/tomcat-juli.jar touch: 没法创建"/opt/apache-tomcat⑺.0.57/logs/catalina.out": 权限不够 bin/catalina.sh: 385: bin/catalina.sh: cannot create /opt/apache-tomcat⑺.0.57/logs/catalina.out: Permission denied youhaidong@youhaidong:/opt/apache-tomcat⑺.0.57$ bin/shutdown.sh Using CATALINA_BASE: /opt/apache-tomcat⑺.0.57 Using CATALINA_HOME: /opt/apache-tomcat⑺.0.57 Using CATALINA_TMPDIR: /opt/apache-tomcat⑺.0.57/temp Using JRE_HOME: /usr/lib/jvm/jdk1.7.0_71/jre Using CLASSPATH: /opt/apache-tomcat⑺.0.57/bin/bootstrap.jar:/opt/apache-tomcat⑺.0.57/bin/tomcat-juli.jar 1月 02, 2015 3:23:28 下午 org.apache.catalina.startup.Catalina stopServer 严重: Catalina.stop: java.io.FileNotFoundException: /opt/apache-tomcat⑺.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⑺.0.57$

2 毛病缘由


3 解决办法

------分隔线----------------------------
------分隔线----------------------------

最新技术推荐