Upgrade Nebula Graph v2.0.x to v2.5.1¶
To upgrade Nebula Graph v2.0.x to v2.5.1, you only need to use the RPM/DEB package of v2.5.1 for the upgrade, or compile it and then reinstall.
Nebula Graph v2.0.x refers to v2.0.0-GA and v2.0.1 releases. If your Nebula Graph version is too low (v2.0.0-RC, v2.0.0-beta, v1.x), see Upgrade Nebula Graph to v2.5.1.
Upgrade steps with RPM/DEB packages¶
Download the RPM/DEB package.
Stop all Nebula Graph services. For details, see Manage Nebula Graph Service. It is recommended to back up the configuration file before updating.
Execute the following command to upgrade:
- RPM package
$ sudo rpm -Uvh <package_name>
If you specify the path during installation, you also need to specify the path during upgrade.
$ sudo rpm -Uvh --prefix=<installation_path> <package_name>
- DEB package
$ sudo dpkg -i <package_name>
- RPM package
Start the required services on each server. For details, see Manage Nebula Graph Service.
Upgrade steps by compiling the new source code¶
Back up the old version of the configuration file. The configuration file is saved in the
etcdirectory of the Nebula Graph installation path.
Update the repository and compile the source code. For details, see Install Nebula Graph by compiling the source code.
When compiling, set the installation path, which is the same as the installation path of the old version.