This guide will walk you through the process of installing Nebula Graph with rpm/deb
packages.
Before getting started, ensure that you meet the following requirements:
- Hard disk: 50 GB
- Memory: 8 GB
To install Nebula Graph with a rpm/deb
package, you must complete the following steps:
-
Download packages.
- Method one: Download via GitHub.
-
Log in to GitHub and click rpm/deb to locate the
rpm/deb
package -
Under the Actions tab, click package on the left. All packages available are displayed.
-
Click the Artifacts list on the upper right corner to select a package to download.
- Method two: Download via OSS.
- Obtaining the release version information. The URL format is as follows:
-
The
${release_version}
in the link is the release version information. For example, use the follow command to download the 1.0.0-rc2 Centos 7 package.
$ wget https://nebula-graph.oss-cn-hangzhou.aliyuncs.com/package/1.0.0-rc2/nebula-1.0.0-rc2.el7-5.x86_64.rpm
b. Obtaining the nightly version. The URL format is as follows:
-
The
${date}
in the link specifies the date. For example, use the follow command to download the April 1st 2020 Centos 7 package.
$ wget https://nebula-graph.oss-cn-hangzhou.aliyuncs.com/package/nightly/2020. 04.01/nebula-2020.04.01-nightly.el7-5.x86_64.rpm
-
Install Nebula Graph.
- For a
rpm
file, install Nebula Graph with the following command:
$ sudo rpm -ivh nebula-2019.12.23-nightly.el6-5.x86_64.rpm
- For a
deb
file, install Nebula Graph with the following command:
$ sudo dpkg -i nebula-2019.12.23-nightly.ubuntu1604.amd64.deb
- Install Nebula Graph to your customized directory with the following command:
rpm -ivh --prefix=${your_dir} nebula-graph-${version}.rpm
- Package Nebula Graph to one package with the following command:
cd nebula/package
./package.sh -v <version>
- Package Nebula Graph to multiple packages with the following command:
cd nebula/package
./package.sh -v <version> -n OFF
Note:
- Replace the above file name with your own file name, otherwise, this command might fail.
- Nebula Graph is installed in the
/usr/local/nebula
directory by default.
After Nebula Graph is installed successfully, you can start Nebula Graph services with the following command:
$ sudo /usr/local/nebula/scripts/nebula.service start all
You can check the Nebula Graph services with the following command:
$ sudo /usr/local/nebula/scripts/nebula.service status all
You can connect to Nebula Graph services with the following command:
$ sudo /usr/local/nebula/bin/nebula -u user -p password
Note: If you successfully connect to Nebula Graph, the Welcome to Nebula Graph
information is returned.
If you want to stop Nebula Graph services, you can enter the following command:
$ sudo /usr/local/nebula/scripts/nebula.service stop all