Step 1: Install NebulaGraph¶
RPM and DEB are common package formats on Linux systems. This topic shows how to quickly install NebulaGraph with the RPM or DEB package.
Note
The console is not complied or packaged with NebulaGraph server binaries. You can install nebula-console by yourself.
Enterpriseonly
For NebulaGraph Enterprise, please contact us.
Prerequisites¶
- The tool
wgetis installed.
- For NebulaGraph Enterprise, you must have the license key loaded in LM.
Step 1: Download the package from cloud service¶
Note
NebulaGraph is currently only supported for installation on Linux systems, and only CentOS 7.x, CentOS 8.x, Ubuntu 16.04, Ubuntu 18.04, and Ubuntu 20.04 operating systems are supported.
- Download the released version.
URL:
//Centos 7 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.el7.x86_64.rpm //Centos 8 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.el8.x86_64.rpm //Ubuntu 1604 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.ubuntu1604.amd64.deb //Ubuntu 1804 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.ubuntu1804.amd64.deb //Ubuntu 2004 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.ubuntu2004.amd64.debFor example, download the release package
3.5.1forCentos 7.5:wget https://oss-cdn.nebula-graph.io/package/3.5.1/nebula-graph-3.5.1.el7.x86_64.rpm wget https://oss-cdn.nebula-graph.io/package/3.5.1/nebula-graph-3.5.1.el7.x86_64.rpm.sha256sum.txtDownload the release package
3.5.1forUbuntu 1804:wget https://oss-cdn.nebula-graph.io/package/3.5.1/nebula-graph-3.5.1.ubuntu1804.amd64.deb wget https://oss-cdn.nebula-graph.io/package/3.5.1/nebula-graph-3.5.1.ubuntu1804.amd64.deb.sha256sum.txt
-
Download the nightly version.
Danger
- Nightly versions are usually used to test new features. Do not use it in a production environment.
- Nightly versions may not be built successfully every night. And the names may change from day to day.
URL:
//Centos 7 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el7.x86_64.rpm //Centos 8 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el8.x86_64.rpm //Ubuntu 1604 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1604.amd64.deb //Ubuntu 1804 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1804.amd64.deb //Ubuntu 2004 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu2004.amd64.debFor example, download the
Centos 7.5package developed and built in2021.11.28:wget https://oss-cdn.nebula-graph.io/package/nightly/2021.11.28/nebula-graph-2021.11.28-nightly.el7.x86_64.rpm wget https://oss-cdn.nebula-graph.io/package/nightly/2021.11.28/nebula-graph-2021.11.28-nightly.el7.x86_64.rpm.sha256sum.txtFor example, download the
Ubuntu 1804package developed and built in2021.11.28:wget https://oss-cdn.nebula-graph.io/package/nightly/2021.11.28/nebula-graph-2021.11.28-nightly.ubuntu1804.amd64.deb wget https://oss-cdn.nebula-graph.io/package/nightly/2021.11.28/nebula-graph-2021.11.28-nightly.ubuntu1804.amd64.deb.sha256sum.txt
Step 2: Install NebulaGraph¶
-
Use the following syntax to install with an RPM package.
$ sudo rpm -ivh --prefix=<installation_path> <package_name>The option
--prefixindicates the installation path. The default path is/usr/local/nebula/.For example, to install an RPM package in the default path for the 3.5.1 version, run the following command.
sudo rpm -ivh nebula-graph-3.5.1.el7.x86_64.rpm
-
Use the following syntax to install with a DEB package.
$ sudo dpkg -i <package_name>Note
Customizing the installation path is not supported when installing NebulaGraph with a DEB package. The default installation path is
/usr/local/nebula/.For example, to install a DEB package for the 3.5.1 version, run the following command.
sudo dpkg -i nebula-graph-3.5.1.ubuntu1804.amd64.debNote
The default installation path is
/usr/local/nebula/.
Step 3: Configure the address of the License Manager¶
Enterpriseonly
This step is required only for NebulaGraph Enterprise.
In the Meta service configuration file (nebula-metad.conf) of NebulaGraph, set the value of license_manager_url to the host IP and port number 9119 where the License Manager (LM) is located, e.g. 192.168.8.100:9119.