zoukankan      html  css  js  c++  java
  • 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

    关注公众号 海量干货等你
  • 相关阅读:
    js获取当前系统时间
    input标签之外是否一定添加form标签
    用css实现凹陷的线条
    js中的类型和函数参数传递类型问题
    jqDOM操作
    js中null与undefined的区别
    centos 支持复制与粘贴
    docker 部署springboot应用
    springboot springcloud 父项目pom工程创建pom文件
    自写流程图 支持批量展示
  • 原文地址:https://www.cnblogs.com/sowhat1412/p/12734241.html
Copyright © 2011-2022 走看看