JanusGraph 服务器无法使用 Bash 启动

问题描述 投票:0回答:1

问题

为什么

janusgraph-server.sh start
服务器启动失败?
运行
git BASH
JanusGraph:最新 [版本 0.6.3(2023 年 2 月 18 日)]

设置

  1. 下载 JanusGraph 包
    janusgraph-x.x.x.zip
  2. 安装 JanusGraph
    unzip janusgraph-x.x.x.zip
  3. 下载并安装 Git for Windows
  4. 打开Git-Bash
  5. 导航到 JanusGraph-安装目录
  6. 执行
    bin/janusgraph-server.sh start

结果

期待

JanusGraph-Server 启动。

其实

JanusGraph-Server 没有启动或发出任何错误消息。

$ bin/janusgraph-server.sh start
/.../Janusgraph/janusgraph-0.6.3/conf/gremlin-server/gremlin-server.yaml will be used to start JanusGraph Server in background
Server failed

试过

检查运行目录是否错误

$ cd bin 
$ sh janusgraph-server.sh start
/.../Janusgraph/janusgraph-0.6.3/conf/gremlin-server/gremlin-server.yaml will be used to start JanusGraph Server in background
Server failed 

检查命令是否错误

janusgraph-server.sh
Usage: janusgraph-server.sh {start [conf file]|stop|restart [conf file]|status|console|config [conf file]|usage <group> <artifact> <version>|<conf file>}

    start           Start the server in the background. Configuration file can be specified as a second argument
                    or as JANUSGRAPH_YAML environment variable. If configuration file is not specified
                    or has invalid path than JanusGraph server will try to use the default configuration file
                    at relative location conf/gremlin-server/gremlin-server.yaml
    stop            Stop the server
    restart         Stop and start the server. To use previously used configuration it should be specified again
                    as described in "start" command
    status          Check if the server is running
    console         Start the server in the foreground. Same rules are applied for configurations as described
                    in "start" command
    config          Print out internal script variable to debug config
    usage           Print out this help message

In case command is not specified and the configuration is specified as the first argument, JanusGraph Server will be started in the foreground using the specified configuration (same as with "console" command).

检查端口是否可用

$ netstat -ano | findstr "8182"
  TCP    127.0.0.1:8182         0.0.0.0:0              LISTENING       24528

LISTENING让我担心但发现
TCP-Ports 可以让多个程序监听同一个套接字,只是不绑定
这很好,因为我有另一个需要运行的 IntelliJ 程序,并将该端口用于其

java.exe
.

sh git-bash janusgraph gremlin-server tcpportsharing
1个回答
0
投票

谢谢开尔文劳伦斯!
由于文件路径的处理方式,JanusGraph 无法在 Windows 上运行。

bin/janusgraph-server.sh: line 211: C:\Program: No such file or directory
janusgraph-server.sh: line 211: C:\Program: No such file or directory
© www.soinside.com 2019 - 2024. All rights reserved.