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 to set the user name, user is the default Nebula Graph user account
  • -p is to set password, password is the default password for account user
  • --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: The default user and password here depends on the enable_authorize. 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

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/).