我在一个.NET应用程序中使用Neo4jclient,该应用程序是在mac (OSX10.9.3)上的VM (VMWare--Windows7)上构建的。Neo4J数据库在Mac上运行。当我尝试连接到Neo4j数据库时,在浏览器中得到与调试代码时相同的错误:
Fiddler到172.16.20.38的套接字连接失败。ErrorCode: 10061。无法建立连接,因为目标计算机主动拒绝它172.16.20.38:7474
使用端口80接收相同的消息。不过,我可以从Windows7虚拟机ping Mac OS。
我尝试在Mac的VM设置中将网络从NAT更改为桥接(自动检测),但无济于事。
我已经搜索了很多,我知道在Linux机器上可以更改某些文件来解决这个问题,但我被卡住了。
发布于 2014-07-11 03:57:25
在我看来,您需要编辑conf/neo4j-server.properties中的设置。
请查看以下内容
# Let the webserver only listen on the specified IP. Default is localhost (only
# accept local connections). Uncomment to allow any connection. Please see the
# security section in the neo4j manual before modifying this.
#org.neo4j.server.webserver.address=0.0.0.0并取消注释掉最后一行org.neo4j.server.webserver.address=0.0.0.0。这将使您能够从另一台计算机进行连接。
https://stackoverflow.com/questions/24679757
复制相似问题