Stopping and Starting the Neo4j Database
Controlling the service
System services are controlled with the systemctl command. It accepts a number of commands and follows the format:
systemctl {start|stop|restart} neo4j
you may find that you need to prefix the systemctl command with sudo like:
sudo systemctl stop neo4j
looking at the output of the status command we get :
sudo systemctl status neo4j
● neo4j.service - Neo4j Graph Database
Loaded: loaded (/etc/systemd/system/neo4j.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-07-23 09:53:29 UTC; 1h 33min ago
Main PID: 958 (pre-neo4j.sh)
Tasks: 64
Memory: 14.3G
CPU: 22min 1.740s
CGroup: /system.slice/neo4j.service
├─ 958 /bin/bash /etc/neo4j/pre-neo4j.sh
├─ 996 /bin/sh /etc/neo4j/reset-password-aws.sh
├─ 997 /usr/bin/java -cp /var/lib/neo4j/plugins:/etc/neo4j:/usr/share/neo4j/lib/*:/var/lib/neo4j/plugins/* -server -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+TrustFina
└─8193 sleep 1
Comments
Post a Comment