我正在尝试按照以下说明在我的Cloud Server上安装Apache Usergrid:http://usergrid.apache.org/docs/installation/deployment-guide.html。云服务器已安装Bitnami Tomcat。
在webapps目录中,已经有一个名为ROOT的文件夹。由于Apache Usergrid .war文件名为ROOT.war,因此我删除了ROOT webapps目录并重新启动了Tomcat。
在server.xml中,我看到:
<Connector port="8080" URIEncoding="UTF-8" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
因此,我假设将其配置为侦听端口8080。在我执行的计算机上:
curl 127.0.0.1:8080
我得到:
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
从计算机上的浏览器尝试,我得到:
This site can’t be reached
这是catalina.out文件的内容:
09-Aug-2018 20:35:44.060 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/ROOT]
09-Aug-2018 20:35:44.159 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Aug-2018 20:35:44.160 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/ROOT] has finished in [100] ms
09-Aug-2018 20:35:44.167 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
09-Aug-2018 20:35:44.224 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2648 ms
09-Aug-2018 21:42:47.633 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
09-Aug-2018 21:42:47.634 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
09-Aug-2018 21:42:47.688 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
09-Aug-2018 21:42:47.739 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
09-Aug-2018 21:42:47.749 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
09-Aug-2018 21:43:08.379 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.32
09-Aug-2018 21:43:08.382 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 20 2018 19:50:35 UTC
09-Aug-2018 21:43:08.382 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.32.0
09-Aug-2018 21:43:08.382 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
因此看起来已部署。有什么想法吗?