neo4j - Neo4j:无法登录:Neo.ClientError.Security.Unauthorized:客户端因身份验证失败而未授权
问题描述
当我:server connect
使用neo4j
并neo4j
得到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
解决方案
我在 /etc/neo4j/neo4j.conf 中禁用/取消注释身份验证
要禁用身份验证,请取消注释此行
dbms.security.auth_enabled=false
它对我有用。
出于安全目的,请确保在完成后对其进行评论
推荐阅读
- javascript - 将更新的元素从 JS 线程传递到 Shadow Thread
- c++ - 结构**我错过了什么?
- flask - Flask 在主模块外设置 @app 装饰器
- jena - tdb2.tdbcompact 命令行工具返回 Failed to get a lock: file
- javascript - 尝试使用 selenium 进行抓取时,我得到了“陈旧的元素引用”,我在需要时使用了“await”语句,但仍然出现错误
- python - dtype 对象的 Numpy 数组对于 sys.getsizeof() 和 nbytes 的值有很大不同
- javascript - 打字稿中的useContext和useReducer
- python - 将列表列表添加到熊猫数据框,其中列表的每个项目都是一个新列
- python - Pandas read_excel 无法读取 xls 但 xlrd 可以
- python - 从列表中找到一个公共数字并将其放在另一个列表中