Neo4j下执行 cypher-shell 时,Connection refused 问题解决?

问题现象

运行 ./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

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

SoWhat1412

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值