當我要執行 neo4j-shell 時,出現以下錯誤:
F:\software\neo4j-community-3.3.3 λ bin\neo4j-shell ERROR (-v for expanded information): Connection refused
How-To
解決步驟如下:
(1) 到 neo4j 安裝目錄下,找到 conf 目錄下的 neo4j.conf 檔案
(2) 在 neo4j.conf 檔案中,找到以下設定值:
# Enable a remote shell server which Neo4j Shell clients can log in to. #dbms.shell.enabled=true # The network interface IP the shell will listen on (use 0.0.0.0 for all interfaces). #dbms.shell.host=127.0.0.1 # The port the shell will listen on, default is 1337. #dbms.shell.port=1337
(3) 將原本註解掉的值拿掉,修改並儲存:
# Enable a remote shell server which Neo4j Shell clients can log in to. dbms.shell.enabled=true # The network interface IP the shell will listen on (use 0.0.0.0 for all interfaces). dbms.shell.host=127.0.0.1 # The port the shell will listen on, default is 1337. dbms.shell.port=1337
(4) 執行 neo4j restart 即可
F:\software\neo4j-community-3.3.3 λ bin\neo4j restart Neo4j windows service stopped Neo4j windows service started
No comments:
Post a Comment