neo4j报错 解决 ServiceUnavailable: WebSocket connection failure. Due to security constraints....

使用brew install neo4j安装neo4j。打开http://localhost:7474/ 后连接数据库,报错,如下所示,无法成功连接数据库。
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver….

1、安装JAVA 1.8。报错时,系统默认使用的是JAVA9。
Java 8下载链接:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2、修改conf文件配置。
# 取消这行配置的注释
dbms.connector.bolt.address=0.0.0.0:7687

3、检查neo4j版本。

  1. 下载neo4j community 3.3.3
    https://go.neo4j.com/download-thanks.html?edition=community&release=3.3.3&flavour=unix&_ga=2.73957973.694484353.1520995468-1452291891.1520995468
  2. 解压文件 tar -zxvf neo4j-community-3.3.3-unix.tar.gz
  3. 修改配置文件

    cd neo4j-community-3.3.3;
    vim conf/neo4j.conf;

    检查配置文件

    dbms.connectors.default_listen_address=0.0.0.0#远程访问
    dbms.connector.bolt.enabled=true#bolt服务,默认端口7687
    dbms.connector.http.enabled=true#http服务,默认端口7474
    dbms.connector.https.enabled=true#https服务,默认端口7473
  4. 打开neo4j服务

    cd bin;
    ./neo4j start
  5. 登陆网址 http://localhost:7474/
    初始密码为neo4j,登陆成功后会提示修改密码

Reference:
https://neo4j.com/download/other-releases/#releases

你可能感兴趣的:(问题解决,数据库)