设置neo4j 3.0.1 版本开放外网链接权限

1)找到这个配置项#dbms.connector.http.listen_address=:7474
改为dbms.connector.http.listen_address=0.0.0.0:7474

2)外网连接时要求身份验证,即使输入正确的密码也会报错,解决方法在官网找到了:
https://neo4j.com/developer/kb/explanation-of-error-websocket-connection-failure/

In Neo4j 3.0 and its implementation of the Bolt protocol, if a remote browser connects to Neo4j (http://:7474) and attempts to authenticate, the following error may be encountered:
WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3
This error can be resolved by editing the file $NEO4J_HOME/conf/neo4j.conf and uncommenting:

To have Bolt accept non-local connections, uncomment this line:

dbms.connector.bolt.address=0.0.0.0:7687

但是,我这个版本和它说的还是不太一样,我本地的更改是:

dbms.connector.bolt.listen_address=0.0.0.0:7687

将这一句改为上面的样子

3)另外,记得开放windows防火墙

你可能感兴趣的:(neo4j)