java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (許可權不夠),tomcat7.0.57

來源:互聯網
上載者:User

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 解決辦法

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.