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.
Prerequisites¶
Prepare the right resources.
Note
The console is not complied or packaged with NebulaGraph server binaries. You can install nebula-console by yourself.
Enterpriseonly
For the Enterprise Edition, please send email to inquiry@vesoft.com.
Download the package from cloud service¶
- Download the released version.
URL:
//Centos 6 https://oss-cdn.nebula-graph.io/package/<release_version>/nebula-graph-<release_version>.el6.x86_64.rpm //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.deb
For example, download the release package
3.0.1
forCentos 7.5
:wget https://oss-cdn.nebula-graph.io/package/3.0.1/nebula-graph-3.0.1.el7.x86_64.rpm wget https://oss-cdn.nebula-graph.io/package/3.0.1/nebula-graph-3.0.1.el7.x86_64.rpm.sha256sum.txt
Download the release package
3.0.1
forUbuntu 1804
:wget https://oss-cdn.nebula-graph.io/package/3.0.1/nebula-graph-3.0.1.ubuntu1804.amd64.deb wget https://oss-cdn.nebula-graph.io/package/3.0.1/nebula-graph-3.0.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 6 https://oss-cdn.nebula-graph.io/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el6.x86_64.rpm //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.deb
For example, download the
Centos 7.5
package 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.txt
For example, download the
Ubuntu 1804
package 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
Install NebulaGraph¶
-
Use the following syntax to install with an RPM package.
$ sudo rpm -ivh --prefix=<installation_path> <package_name>
The option
--prefix
indicates the installation path. The default path is/usr/local/nebula/
.For example, to install an RPM package in the default path for the 3.0.1 version, run the following command.
sudo rpm -ivh nebula-graph-3.0.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.0.1 version, run the following command.
sudo dpkg -i nebula-graph-3.0.1.ubuntu1804.amd64.deb
Note
The default installation path is
/usr/local/nebula/
.
Next to do¶
- (Enterprise Edition)Deploy license