問題現象

運作 ./neo4j start
Active database: graph.db
Directories in use:
home: /data/liujinjie/neo4j-community-online
config: /data/liujinjie/neo4j-community-online/conf
logs: /data/liujinjie/neo4j-community-online/logs
plugins: /data/liujinjie/neo4j-community-online/plugins
import: /data/liujinjie/neo4j-community-online/import
data: /data/liujinjie/neo4j-community-online/data
certificates: /data/liujinjie/neo4j-community-online/certificates
run: /data/liujinjie/neo4j-community-online/run
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
Started neo4j (pid 165607). It is available at http://0.0.0.0:9311/
There may be a short delay until the server is ready.
See /data/liujinjie/neo4j-community-online/logs/neo4j.log for current status.
此時neo4j 已經開啟,然後運作指令行指令
./cypher-shell
Connection refused
問題分析
(1)配置檔案裡的關于shell的配置打開了嗎
(2)為了更好的遠端通路
解決辦法一
解決辦法二(推薦)
# 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=0.0.0.0
# The port the shell will listen on, default is 1337.
dbms.shell.port=1337
./cypher-shell -h 根據指令行指令操作即可,
在指令行執行cypher-shell
./cypher-shell -a bolt://localhost:Port -u user_name -p passwd