我刚刚在 Ubuntu 13.04 中安装了 Tomcat 7,但我在启动服务器时遇到了问题。
我已经通过以下命令安装了 Tomcat 7:
tar -xzpf ./apache-tomcat-7.0.26.tar.gz -C /chemin_vers_dossier_d_installation/
并启动服务器:
/opt/apache-tomcat-7.0.39/bin/catalina.sh run
但我有这个错误信息:
run
Using CATALINA_BASE: /opt/apache-tomcat-7.0.39
Using CATALINA_HOME: /opt/apache-tomcat-7.0.39
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.39/temp
Using JRE_HOME: /home/fakarovic/jdk1.6.0_45/
Using CLASSPATH: /opt/apache-tomcat-7.0.39/bin/bootstrap.jar:/opt/apache-tomcat-7.0.39/bin/tomcat-juli.jar
May 10, 2013 9:19:32 AM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [/opt/apache-tomcat-7.0.39/conf/server.xml]
May 10, 2013 9:19:32 AM org.apache.catalina.startup.Catalina load
WARNING: Permissions incorrect, read permission is not allowed on the file.
May 10, 2013 9:19:32 AM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from [/opt/apache-tomcat-7.0.39/conf/server.xml]
May 10, 2013 9:19:32 AM org.apache.catalina.startup.Catalina load
WARNING: Permissions incorrect, read permission is not allowed on the file.
May 10, 2013 9:19:32 AM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.
注意:我已经定义了 JAVA_HOME 变量。