真的想从火花奴隶那里连接到螺栓,但想想如果我能使用cypher-shell工作,剩下的就会落到位。所以我可以这样做:
cypher-shell -a localhost
连接好了
如果我在实际IP的盒子上这样做:
cypher-shell -a 172.20.0.71:7687
得到一个拒绝的连接,我认为我所要做的只是在conf中:
dbms.connector.bolt.address=0.0.0.0:7687
这似乎不起作用是否还有其他我想念的东西? (或者至少以上似乎没有用,我确实重新启动了我的neo4j实例,因此它应该将更改添加到conf)。仅使用cypher-shell上的默认值进行连接确实可以实现:
Connected to Neo4j 3.3.0 at bolt://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
所以也许它没有完全重启并获得对neo4j.conf
的更改?或者更有可能的是,我错过了其他的东西,以便我认为应该这样做。我可以通过实际的IP地址从另一个IP或本地连接到哪里?
您需要在neo4j.conf
中取消注释:
dbms.connectors.default_listen_address=0.0.0.0
重启服务器,然后使用cypher-shell:
cypher-shell -a bolt://172.20.0.71:7687