Start and Stop Nebula Graph Services

Inputting the Following Commands to Start Nebula Graph Services

sudo /usr/local/nebula/scripts/nebula.service start all
[INFO] Starting nebula-metad...
[INFO] Done
[INFO] Starting nebula-graphd...
[INFO] Done
[INFO] Starting nebula-storaged...
[INFO] Done

Listing Nebula Graph Services

Listing Nebula Graph services with the following command:

sudo /usr/local/nebula/scripts/nebula.service status all
[INFO] nebula-metad: Running as 9576, Listening on 45500
[INFO] nebula-graphd: Running as 9679, Listening on 3699
[INFO] nebula-storaged: Running as 9812, Listening on 44500

Connecting Nebula Graph Service

Connecting Nebula Graph service with the following command:

sudo /usr/local/nebula/bin/nebula -u <user> -p <password> [--addr=<graphd IP> --port=<graphd port>]

Welcome to Nebula Graph (Version RC4)

nebula> SHOW HOSTS;
  • -u is the user name, root is the default Nebula Graph user account
  • -p is the password, nebula is the default password for account root
  • --addr is the graphd IP address
  • --port is the the graphd server port and the default value is 3699
  • Checking the successfully connected services with command SHOW HOSTS

Note: enable_authorize is set to false by default. You can use any account or password or no account to connect. If enabled, the default user name and password are root and nebula respectively. See the Built-in Roles Doc.

Stop Nebula Graph Services

Stop Nebula Graph services with the following command:

sudo /usr/local/nebula/scripts/nebula.service stop all
[INFO] Stopping nebula-metad...
[INFO] Done
[INFO] Stopping nebula-graphd...
[INFO] Done
[INFO] Stopping nebula-storaged...
[INFO] Done

Stopping services with kill -9 might cause data lose. We suggest stopping services in the above way.

Start/Stop Single Nebula Graph Module

Start/stop single module with script nebula.service.

sudo /usr/local/nebula/scripts/nebula.service
Usage: ./nebula.service [-v] [-c /path/to/config] <start|stop|restart|status|kill> <metad|graphd|storaged|all>
  • -v Detailed debugging information of this script
  • -c Configuration file path, the default is the etc/ directory under the installation path (/usr/local/nebula/).