Datastax 工作室无法使用

Datastax 工作室无法使用

我关注了关联安装 datastax studio。我也有正确的 Java 版本:

java -version
java version "1.8.0_181"

但 datastax studio 仍然没有在本地主机端口 9091 上呈现任何内容。/etc/hosts 很好

cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   ashu-XPS-8930

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

其他人也遇到同样的问题吗?互联网和其他一切正常。

cat catalina0.log 
Jul 11, 2020 12:26:11 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-127.0.0.1-9091"]
Jul 11, 2020 12:26:11 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jul 11, 2020 12:26:11 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Jul 11, 2020 12:26:11 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.15
Jul 11, 2020 12:26:11 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Jul 11, 2020 12:26:12 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 11, 2020 12:26:13 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 11, 2020 12:26:14 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 11, 2020 12:26:16 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 11, 2020 12:26:16 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 11, 2020 12:26:28 PM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.9 2014-05-22 05:12:10...
Jul 11, 2020 12:26:28 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'websocket-servlet'
Jul 11, 2020 12:26:30 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jul 11, 2020 12:26:30 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-127.0.0.1-9091"]

其他日志

cat studio.log 
12:26:31.091 [main] INFO  com.datastax.studio.server.Bootstrap ID:  TS: - NOTE: Studio will only be accessible on this machine.
To enable remote connections, modify the httpBindAddress setting in configuration.yaml to 0.0.0.0 (all addresses) or a publicly accessible address. However, note that doing so may introduce a security risk.
Visit https://docs.datastax.com/en/allStudioConfig/ for configuration documentation.

Studio 6.8.1-8e0de02 is now running at: http://localhost:9091

12:26:31.091 [main] INFO  com.datastax.studio.server.Bootstrap ID:  TS: - Startup in 20732 millis

在此处输入图片描述

答案1

好吧,这是一个愚蠢的错误。我需要递归地更改整个 datastax studio 目录的所有者。

chown -R <new-user> or <root> datastax-studio-6.8.1/

一旦完成后,datastax studio 就可以正常工作了。 在此处输入图片描述

相关内容