py2neo.database.work.ClientError : [Security.Unauthorized] 클라이언트가 인증으로 인해 권한이 없음

문제 설명:

Python은 neo4j를 실행하고 오류를보고합니다.

py2neo.database.work.ClientError : [Security.Unauthorized] 클라이언트가 인증 실패로 인해 권한이 없습니다.

해결책:

1. 아래 그림과 같이 neo4j 설치 디렉토리 /conf/neo4j.conf 파일의 관련 구성을 조정합니다.

#*****************************************************************
# Network connector configuration
#*****************************************************************

# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
dbms.connectors.default_listen_address=0.0.0.0

# You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address.

# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
# individual connectors below.
dbms.connectors.default_advertised_address=localhost

# You can also choose a specific advertised hostname or IP address, and
# configure an advertised port for each connector, by setting their
# individual advertised_address.


# Bolt connector
dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.listen_address=:7687

# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=:7474

# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
dbms.connector.https.listen_address=:7473

2. ctrl + C를 누르고 neo4j 데이터베이스를 닫습니다.
여기에 사진 설명 삽입
3. 기타 프로세스 :

1. 콘솔을 통해 Neo4j 프로그램 시작

Windows + R 키 조합을 클릭하고 cmd를 입력하고 DOS 명령 줄 창을 시작하고 홈 디렉토리로 전환 한 다음 관리자 권한으로 명령을 실행합니다.

neo4j.bat 콘솔
2, 서비스로 Neo4j 설치 (Windows 서비스)

설치 및 제거 서비스 :

bin \ neo4j install-service
bin \ neo4j uninstall-service 서비스를
시작하고, 서비스를 중지하고, 서비스를 다시 시작하고, 서비스 상태를 쿼리합니다.

bin \ neo4j start
bin \ neo4j stop
bin \ neo4j restart
bin \ neo4j status
3, 브라우저에서 neo4j 열기 :

Neo4j 서버에는 통합 브라우저가 있습니다. 실행중인 서버 인스턴스에서 "http : // localhost : 7474 /"를 방문하여 브라우저를 열고 시작 페이지를 표시합니다.

추천

출처blog.csdn.net/weixin_47542175/article/details/115341887