Descripción del problema:
Python ejecuta neo4j e informa de un error:
py2neo.database.work.ClientError: [Security.Unauthorized] El cliente no está autorizado debido a un error de autenticación.
Solución:
1. Ajuste la configuración relevante del directorio de instalación de neo4j / conf / neo4j.conf como se muestra en la siguiente figura:
#*****************************************************************
# 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, cerrar la base de datos neo4j
3. Otros procesos:
1. Inicie el programa Neo4j a través de la consola.
Haga clic en la combinación de teclas: Windows + R, ingrese cmd, inicie la ventana de línea de comandos de DOS, cambie al directorio de inicio y ejecute el comando como administrador:
neo4j.bat consola
2, instale Neo4j como servicio (Servicios de Windows)
Servicios de instalación y desinstalación:
bin \ neo4j install-service
bin \ neo4j uninstall-service
Inicie el servicio, detenga el servicio, reinicie el servicio y consulte el estado del servicio:
bin \ neo4j start
bin \ neo4j stop
bin \ neo4j restart
bin \ neo4j status
3, abre neo4j en el navegador:
El servidor Neo4j tiene un navegador integrado. Visite "http: // localhost: 7474 /" en una instancia de servidor en ejecución, abra el navegador y muestre la página de inicio.