首页 > 解决方案 > Neo4j:无法登录:Neo.ClientError.Security.Unauthorized:客户端因身份验证失败而未授权

问题描述

当我:server connect使用neo4jneo4j得到Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure..

我尝试取消注释该行dbms.security.auth_enabled=false/etc/neo4j/neo4j.conf重新启动,但它仍然要求我登录并且仍然拒绝登录。

我可以加入/usr/bin/cypher-shell -u neo4j -p neo4j

我试过/usr/bin/neo4j-admin set-initial-password secret但它说command failed: The specified user 'neo4j' already exists.

我尝试sudo rm /var/lib/neo4j/data/dbms/auth并重新启动,但它给出了相同的结果。

Ubuntu 16.04

安装有sudo apt-get install neo4j=1:3.5.0

标签: neo4j

解决方案


我在 /etc/neo4j/neo4j.conf 中禁用/取消注释身份验证

要禁用身份验证,请取消注释此行

dbms.security.auth_enabled=false

它对我有用。

出于安全目的,请确保在完成后对其进行评论


推荐阅读