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 an 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 release package 2.6.2 for
Centos 7.5
:wget https://oss-cdn.nebula-graph.io/package/2.6.2/nebula-graph-2.6.2.el7.x86_64.rpm wget https://oss-cdn.nebula-graph.io/package/2.6.2/nebula-graph-2.6.2.el7.x86_64.rpm.sha256sum.txt
download release package
2.6.2
forUbuntu 1804
:wget https://oss-cdn.nebula-graph.io/package/2.6.2/nebula-graph-2.6.2.ubuntu1804.amd64.deb wget https://oss-cdn.nebula-graph.io/package/2.6.2/nebula-graph-2.6.2.ubuntu1804.amd64.deb.sha256sum.txt
-
Download the nightly version.
Danger
- Nightly versions are usually used to test new features. Don't use it for production.
- Nightly versions may not be build successfully every night. And the names may change from day to day.
URL:
//Centos 6 https://oss-cdn.nebula-graph.io/package/v2-nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el6.x86_64.rpm //Centos 7 https://oss-cdn.nebula-graph.io/package/v2-nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el7.x86_64.rpm //Centos 8 https://oss-cdn.nebula-graph.io/package/v2-nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el8.x86_64.rpm //Ubuntu 1604 https://oss-cdn.nebula-graph.io/package/v2-nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1604.amd64.deb //Ubuntu 1804 https://oss-cdn.nebula-graph.io/package/v2-nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1804.amd64.deb //Ubuntu 2004 https://oss-cdn.nebula-graph.io/package/v2-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.03.28
:wget https://oss-cdn.nebula-graph.io/package/v2-nightly/2021.03.28/nebula-graph-2021.03.28-nightly.el7.x86_64.rpm wget https://oss-cdn.nebula-graph.io/package/v2-nightly/2021.03.28/nebula-graph-2021.03.28-nightly.el7.x86_64.rpm.sha256sum.txt
For example, download the
Ubuntu 1804
package developed and built in2021.03.28
:wget https://oss-cdn.nebula-graph.io/package/v2-nightly/2021.03.28/nebula-graph-2021.03.28-nightly.ubuntu1804.amd64.deb wget https://oss-cdn.nebula-graph.io/package/v2-nightly/2021.03.28/nebula-graph-2021.03.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>
For example, to install an RPM package in the default path for the 2.6.2 version.
sudo rpm -ivh nebula-graph-2.6.2.el7.x86_64.rpm
-
Use the following syntax to install with a DEB package.
$ sudo dpkg -i --instdir==<installation_path> <package_name>
For example, to install a DEB package in the default path for the 2.6.2 version.
sudo dpkg -i nebula-graph-2.6.2.ubuntu1804.amd64.deb
Note
The default installation path is
/usr/local/nebula/
.
What's next¶
- (Enterprise Edition)Deploy license
- start NebulaGraph
- connect to NebulaGraph