Docs: adds uninstall instructions to debian/ubuntu (#70841)

* adds uninstall to debian/ubuntu

* updates based on SME feedback

* Update docs/sources/setup-grafana/installation/debian/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Moved remove grafana repo as separate step

* adds uninstall docs to remaining linux topics

* Update docs/sources/setup-grafana/installation/debian/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/suse-opensuse/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/suse-opensuse/index.md

* corrects punctuation

* makes prettier

---------

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
This commit is contained in:
Christopher Moyer 2023-07-05 08:06:03 -05:00 committed by GitHub
parent d31e96104a
commit 971058919f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 105 additions and 1 deletions

View File

@ -92,6 +92,42 @@ Complete the following steps to install Grafana using DEB or the standalone bina
1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download).
1. Copy and paste the code from the [download page](/grafana/download) into your command line and run.
## Uninstall on Debian or Ubuntu
Complete any of the following steps to uninstall Grafana.
To uninstall Grafana, run the following commands in a terminal window:
1. If you configured Grafana to run with systemd, stop the systemd servivce for Grafana server:
```shell
sudo systemctl stop grafana-server
```
1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server:
```shell
sudo service grafana-server stop
```
1. To uninstall Grafana OSS:
```shell
sudo apt-get remove grafana
```
1. To uninstall Grafana Enterprise:
```shell
sudo apt-get remove grafana-enterprise
```
1. Optional: To remove the Grafana repository:
```bash
sudo rm -i /etc/apt/sources.list.d/grafana.list
```
## Next steps
- [Start the Grafana server]({{< relref "../../start-restart-grafana" >}})

View File

@ -100,6 +100,40 @@ Complete the following steps to install Grafana using the standalone binaries:
1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download).
1. Copy and paste the code from the [download page](/grafana/download) page into your command line and run.
## Uninstall on RHEL or Fedora
To uninstall Grafana, run the following commands in a terminal window:
1. If you configured Grafana to run with systemd, stop the systemd service for Grafana server:
```shell
sudo systemctl stop grafana-server
```
1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server:
```shell
sudo service grafana-server stop
```
1. To uninstall Grafana OSS:
```shell
sudo dnf remove grafana
```
1. To uninstall Grafana Enterprise:
```shell
sudo dnf remove grafana-enterprise
```
1. Optional: To remove the Grafana repository:
```shell
sudo rm -i /etc/apt/sources.list.d/grafana.list
```
## Next steps
Refer to [Start the Grafana server]({{< relref "../../start-restart-grafana" >}}).

View File

@ -88,6 +88,40 @@ Complete the following steps to install Grafana using the standalone binaries:
1. Depending on which system you are running, click the **Linux** or **ARM** tab on the [download page](/grafana/download).
1. Copy and paste the code from the [download page](/grafana/download) into your command line and run.
## Uninstall on SUSE or openSUSE
To uninstall Grafana, run the following commands in a terminal window:
1. If you configured Grafana to run with systemd, stop the systemd service for Grafana server:
```shell
sudo systemctl stop grafana-server
```
1. If you configured Grafana to run with init.d, stop the init.d service for Grafana server:
```shell
sudo service grafana-server stop
```
1. To uninstall Grafana OSS:
```shell
sudo zypper remove grafana
```
1. To uninstall Grafana Enterprise:
```shell
sudo zypper remove grafana-enterprise
```
1. Optional: To remove the Grafana repository:
```shell
sudo zypper removerepo grafana
```
## Next steps
Refer to [Start the Grafana server]({{< relref "../../start-restart-grafana" >}}).

View File

@ -22,7 +22,7 @@ The following subsections describe three methods of starting and restarting the
### Start the Grafana server with systemd
Complete the following steps to start the Grafana server using systemd and verify that it is running:
Complete the following steps to start the Grafana server using systemd and verify that it is running.
1. To start the service, run the following commands: