java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够)
来源:程序员人生 发布时间:2015-01-10 08:56:44 阅读次数:6467次
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 解决办法
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠