Neo4j
Installation
Make sure
OpenJDK(TM) 11is installed first.
- Install Neo4j using the following commands:
sh
curl -fsSL https://debian.neo4j.com/neotechnology.gpg.key |sudo gpg --dearmor -o /usr/share/keyrings/neo4j.gpg
echo "deb [signed-by=/usr/share/keyrings/neo4j.gpg] https://debian.neo4j.com stable 4.1" | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt update && sudo apt install -y neo4jConfiguration
- Update
/etc/neo4j/neo4j.conffile and make following changes
sh
# Edited using `sudo vi /etc/neo4j/neo4j.conf`
dbms.default_listen_address=192.168.1.100
dbms.connector.bolt.listen_address=192.168.1.100:7687
dbms.connector.http.listen_address=192.168.1.100:7474
dbms.connector.https.listen_address=192.168.1.100:7473- Enable the service and start it using:
sh
sudo systemctl enable neo4j
sudo systemctl restart neo4jLog into the service as
neo4juser usingcypher-shell -a 192.168.1.100command.- The initial password is also
neo4j, but once you log in you'll be prompted to change the password.- Use password from iCloud Keychain.
- The initial password is also
Exit the shell by typing
:exit.
Test Connection
- Open this link in the browser:
http://192.168.1.100:7474/browser
Useful commands
sh
# For logs
journalctl -e -u neo4j
# Edit and Cat Service config
sudo systemctl edit neo4j
sudo systemctl cat neo4j