Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade nebula graph to 250 #677

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Upgrade Nebula Graph v2.0.x to v{{nebula.release}}

To upgrade Nebula Graph v2.0.x to v{{nebula.release}}, you only need to use the RPM/DEB package of v{{nebula.release}} for the upgrade operation, or [compile v{{nebula.release} }](../2.compile-and-install-nebula-graph/1.install-nebula-graph-by-compiling-the-source-code.md) and then reinstall.
To upgrade Nebula Graph v2.0.x to v{{nebula.release}}, you only need to use the RPM/DEB package of v{{nebula.release}} for the upgrade, or [Compile v{{nebula.release} }](../2.compile-and-install-nebula-graph/1.install-nebula-graph-by-compiling-the-source-code.md) and then reinstall.

!!! note

Nebula Graph v2.0.x refers to v2.0.0-GA and v2.0.1 versions. If the Nebula Graph version is too low (v2.0.0-RC, v2.0.0-beta, v1.x), please refer to [Upgrade Nebula Graph Historical Version to v{{nebula.release}}](upgrade-nebula-graph-to -250.md).
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 v{{nebula.release}}](upgrade-nebula-graph-to-250.md).

## RPM/DEB package upgrade steps
## Upgrade steps with RPM/DEB packages

1. Download [RPM/DEB package](https://github.com/vesoft-inc/nebula-graph/releases/tag/v{{nebula.release}}).
1. Download the [RPM/DEB package](https://github.com/vesoft-inc/nebula-graph/releases/tag/v{{nebula.release}}).

2. Stop all Nebula Graph services. For details, please refer to [Manage Nebula Graph Service](../../2.quick-start/5.start-stop-service.md). It is recommended to back up the configuration file before updating.
2. Stop all Nebula Graph services. For details, see [Manage Nebula Graph Service](../../2.quick-start/5.start-stop-service.md). It is recommended to back up the configuration file before updating.

3. Execute the following command to upgrade:

Expand All @@ -19,30 +19,31 @@ To upgrade Nebula Graph v2.0.x to v{{nebula.release}}, you only need to use the
```bash
$ sudo rpm -Uvh <package_name>
```
If you specify the path during installation, you also need to specify the path during upgrade

If you specify the path during installation, you also need to specify the path during upgrade.

```bash
$ sudo rpm -Uvh --prefix=<installation_path> <package_name>
```

-DEB package

```bash
$ sudo dpkg -i <package_name>
```

4. Start the required services on each server. For details, please refer to [Manage Nebula Graph Service](../../2.quick-start/5.start-stop-service.md#_1).
4. Start the required services on each server. For details, see [Manage Nebula Graph Service](../../2.quick-start/5.start-stop-service.md#_1).

## Compile the new version source code upgrade steps
## Upgrade steps by compiling the new source code

1. Back up the old version of the configuration file. The configuration file is saved in the `etc` directory of the Nebula Graph installation path.

2. Update the warehouse and compile the source code. For details, please refer to [Install Nebula Graph Using Source Code](../2.compile-and-install-nebula-graph/1.install-nebula-graph-by-compiling-the-source-code.md).
2. Update the repository and compile the source code. For details, see [Install Nebula Graph by compiling the source code](../2.compile-and-install-nebula-graph/1.install-nebula-graph-by-compiling-the-source-code.md).

!!! note

When compiling, pay attention to setting the installation path, which is consistent with the installation path of the old version.
When compiling, set the installation path, which is the same as the installation path of the old version.

## Docker Compose deployment upgrade steps
## Upgrade steps by deploying Docker Compose

Please refer to [How to update the Docker image of Nebula Graph service](../2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md#nebula_graphdocker).
See [How to update the Docker image of Nebula Graph services](../2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md#nebula_graphdocker).
Loading