Installing Neo4j with Homebrew on macOS
Install Neo4j
Install Neo4j with Homebrew:
% brew install neo4j
Check the version after installation:
% neo4j --version
5.7.0
If the version is displayed correctly, installation is complete.
Ports
| Port | Description |
|---|---|
| 7687 | Neo4j database service |
| 7474 | Hosts the Neo4j Browser administration console |
Initial password
The default Neo4j credentials are:
| ID | Password |
|---|---|
| neo4j | neo4j |
You must change this initial password. Change it through the web interface or with the following command:
$ neo4j-admin dbms set-initial-password {password}
Start Neo4j
$ neo4j start
Startup error
Neo4j may fail to start after installation with an error like this:
$ neo4j start
Failed to read config /opt/homebrew/Cellar/neo4j/5.7.0/libexec/conf/neo4j.conf: Unrecognized setting. No declared setting with name: wrapper.java.additional.4. Cleanup the config or disable 'server.config.strict_validation.enabled' to continue.
Run with '--verbose' for a more detailed error message.
As indicated by the message, add the following setting to /opt/homebrew/Cellar/neo4j/5.7.0/libexec/conf/neo4j.conf:
server.config.strict_validation.enabled=false
Stop Neo4j
$ neo4j stop
Check Neo4j status
$ neo4j status
Open the Neo4j Browser console
$ open http://localhost:7474
The first startup after installation prompts you to change the password. Unless a new password was already configured, you must change it.
Connection information
Applications can connect through HTTP/HTTPS or the Bolt protocol.
HTTP base URL
http://localhost:7474/db/data
Bolt base URL
bolt://localhost:7687
Directory and file paths
Base directory
/opt/homebrew/Cellar/neo4j/5.7.0/libexec/import/
Configuration file
/opt/homebrew/Cellar/neo4j/5.7.0/libexec/conf/neo4j.conf
Plugin directory
/opt/homebrew/Cellar/neo4j/5.7.0/libexec/plugins/
Data directory
/opt/homebrew/var/neo4j/data/databases/neo4j/
Log file
/opt/homebrew/var/log/neo4j/neo4j.log