跳转至

步骤 1:安装 NebulaGraph

RPM 和 DEB 是 Linux 系统下常见的两种安装包格式,本文介绍如何使用 RPM 或 DEB 文件在一台机器上快速安装 NebulaGraph。

Note

部署 NebulaGraph 集群的方式参见使用 RPM/DEB 包部署集群

前提条件

安装 wget

下载安装包

阿里云 OSS 下载

  • 下载 release 版本

    URL 格式如下:

    //Centos 7
    https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.el7.x86_64.rpm
    
    //Centos 8
    https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.el8.x86_64.rpm
    
    //Ubuntu 1604
    https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.ubuntu1604.amd64.deb
    
    //Ubuntu 1804
    https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.ubuntu1804.amd64.deb
    
    //Ubuntu 2004
    https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.ubuntu2004.amd64.deb
    

    例如要下载适用于Centos 7.53.2.1安装包:

    wget https://oss-cdn.nebula-graph.com.cn/package/3.2.1/nebula-graph-3.2.1.el7.x86_64.rpm
    wget https://oss-cdn.nebula-graph.com.cn/package/3.2.1/nebula-graph-3.2.1.el7.x86_64.rpm.sha256sum.txt
    

    下载适用于ubuntu 18043.2.1安装包:

    wget https://oss-cdn.nebula-graph.com.cn/package/3.2.1/nebula-graph-3.2.1.ubuntu1804.amd64.deb
    wget https://oss-cdn.nebula-graph.com.cn/package/3.2.1/nebula-graph-3.2.1.ubuntu1804.amd64.deb.sha256sum.txt
    

  • 下载日常开发版本 (nightly)

    Danger

    • nightly 版本通常用于测试新功能、新特性,请不要在生产环境中使用 nightly 版本。
    • nightly 版本不保证每日都能完整发布,也不保证是否会更改文件名。

    URL 格式如下:

    //Centos 7
    https://oss-cdn.nebula-graph.com.cn/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el7.x86_64.rpm
    
    //Centos 8
    https://oss-cdn.nebula-graph.com.cn/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.el8.x86_64.rpm
    
    //Ubuntu 1604
    https://oss-cdn.nebula-graph.com.cn/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1604.amd64.deb
    
    //Ubuntu 1804
    https://oss-cdn.nebula-graph.com.cn/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu1804.amd64.deb
    
    //Ubuntu 2004
    https://oss-cdn.nebula-graph.com.cn/package/nightly/<yyyy.mm.dd>/nebula-graph-<yyyy.mm.dd>-nightly.ubuntu2004.amd64.deb
    

    例如要下载2021.11.24适用于Centos 7.52.x安装包:

    wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.el7.x86_64.rpm
    wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.el7.x86_64.rpm.sha256sum.txt
    

    要下载2021.11.24适用于Ubuntu 18042.x安装包:

    wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.ubuntu1804.amd64.deb
    wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.ubuntu1804.amd64.deb.sha256sum.txt
    

安装 NebulaGraph

  • 安装 RPM 包

    $ sudo rpm -ivh --prefix=<installation_path> <package_name>
    

    --prefix为可选项,用于指定安装路径。如不设置,系统会将 NebulaGraph 安装到默认路径/usr/local/nebula/

    例如,要在默认路径下安装3.2.1版本的 RPM 包,运行如下命令:

    sudo rpm -ivh nebula-graph-3.2.1.el7.x86_64.rpm
    
  • 安装 DEB 包

    $ sudo dpkg -i <package_name>
    

    Note

    使用 DEB 包安装 NebulaGraph 时不支持自定义安装路径。默认安装路径为/usr/local/nebula/

    例如安装3.2.1版本的 DEB 包:

    sudo dpkg -i nebula-graph-3.2.1.ubuntu1804.amd64.deb
    

后续操作


最后更新: September 27, 2022