您的位置:首页 > 产品设计 > UI/UE

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

2018-03-14 22:44 585 查看
使用
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版本。

下载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

解压文件
tar -zxvf neo4j-community-3.3.3-unix.tar.gz


修改配置文件

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


打开neo4j服务

cd bin;

./neo4j start


登陆网址 http://localhost:7474/

初始密码为
neo4j
,登陆成功后会提示修改密码

Reference:

https://neo4j.com/download/other-releases/#releases
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐