Neo4j-shell 报错Connection refused解决方案

Linux环境下

cd /usr/share/neo4j/bin
./neo4j-shell

报错如下:

ERROR (-v for expanded information):
	Connection refused

 -host      Domain name or IP of host to connect to (default: localhost)
 -port      Port of host to connect to (default: 1337)
 -name      RMI name, i.e. rmi://<host>:<port>/<name> (default: shell)
 -pid       Process ID to connect to
 -c         Command line to execute. After executing it the shell exits
 -file      File containing commands to execute, or '-' to read from stdin. After executing it the shell exits
 -readonly  Connect in readonly mode (only for connecting with -path)
 -path      Points to a neo4j db path so that a local server can be started there
 -config    Points to a config file when starting a local server

Example arguments for remote:
	-port 1337
	-host 192.168.1.234 -port 1337 -name shell
	-host localhost -readonly
	...or no arguments for default values
Example arguments for local:
	-path /path/to/db
	-path /path/to/db -config /path/to/neo4j.config
	-path /path/to/db -readonly

解决方案:

cd /etc/neo4j
vim neo4j.conf

去掉 #dbms.shell.enabled=true  前面的#  (位置246行)

更改后重启neo4j即可

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值