問題の説明:
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 /」にアクセスし、ブラウザーを開いて、スタートアップページを表示します。