Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to solve the Connection refused problem when executing cypher-shell under Neo4j

Shulou Source: shulou.com Published: 2022-06-01 17:17:50 10月01日 Update

In this issue, the editor will bring you about how to solve the Connection refused problem when implementing cypher-shell under Neo4j. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Problem phenomenon

Run. / neo4j start Active database: graph.dbDirectories in use: home: / data/liujinjie/neo4j-community-online config: / data/liujinjie/neo4j-community-online/conf logs: / data/liujinjie/neo4j-community-online/logs plugins: / data/liujinjie/neo4j-community-online/plugins import: / data/liujinjie/neo4j-community-online/import data: / data/liujinjie/neo4j- Community-online/data certificates: / data/liujinjie/neo4j-community-online/certificates run: / data/liujinjie/neo4j-community-online/runStarting Neo4j.WARNING: Max 1024 open files allowed Minimum of 40000 recommended. See the Neo4j manual.Started neo4j (pid 165607). It is available at http://0.0.0.0:9311/There may be a short delay until the server is ready.See / data/liujinjie/neo4j-community-online/logs/neo4j.log for current status.

Now that neo4j is on, run the command line instruction

. / cypher-shell Connection refused

Analysis of problems

(1) has the configuration of shell in the configuration file been turned on?

(2) for better remote access

Solution one

# Enable a remote shell server which Neo4j Shell clients can log in to.dbms.shell.enabled=true# The network interface IP the shell will listen on (use 0.0.0.0 for all interfaces) .dbms.shell.host=0.0.0.0# The port the shell will listen on, default is 1337.dbms.shell.port=1337

. / cypher-shell-h can operate according to command line instructions

Execute cypher-shell. / cypher-shell-a bolt://localhost:Port-u user_name-p passwd on the command line. This is how to solve the Connection refused problem when executing Connection refused under the Neo4j shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Problems commands analysis content instructions operation configuration specialty small and medium rich content methods that is files articles more phenomena knowledge articles industries perspectives Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info Apple OPPO Reno MariaDB