|
@@ -22,29 +22,29 @@ Description | Download
|
|
|
|
|
|
|
|
Add the following line to your `/etc/apt/sources.list` file.
|
|
Add the following line to your `/etc/apt/sources.list` file.
|
|
|
|
|
|
|
|
- `deb https://packagecloud.io/grafana/stable/debian/ wheezy main`
|
|
|
|
|
|
|
+ deb https://packagecloud.io/grafana/stable/debian/ wheezy main
|
|
|
|
|
|
|
|
Use the above line even if you are on Ubuntu or another Debian version.
|
|
Use the above line even if you are on Ubuntu or another Debian version.
|
|
|
There is also a testing repository if you want beta or release
|
|
There is also a testing repository if you want beta or release
|
|
|
candidates.
|
|
candidates.
|
|
|
|
|
|
|
|
- `deb https://packagecloud.io/grafana/testing/debian/ wheezy main`
|
|
|
|
|
|
|
+ deb https://packagecloud.io/grafana/testing/debian/ wheezy main
|
|
|
|
|
|
|
|
Then add the [Package Cloud](https://packagecloud.io/grafana) key. This
|
|
Then add the [Package Cloud](https://packagecloud.io/grafana) key. This
|
|
|
allows you to install signed packages.
|
|
allows you to install signed packages.
|
|
|
|
|
|
|
|
- `$ curl https://packagecloud.io/gpg.key | sudo apt-key add -`
|
|
|
|
|
|
|
+ $ curl https://packagecloud.io/gpg.key | sudo apt-key add -
|
|
|
|
|
|
|
|
Update your Apt repositories and install Grafana
|
|
Update your Apt repositories and install Grafana
|
|
|
|
|
|
|
|
- `$ sudo apt-get update`
|
|
|
|
|
- `$ sudo apt-get install grafana`
|
|
|
|
|
|
|
+ $ sudo apt-get update
|
|
|
|
|
+ $ sudo apt-get install grafana
|
|
|
|
|
|
|
|
On some older versions of Ubuntu and Debian you may need to install the
|
|
On some older versions of Ubuntu and Debian you may need to install the
|
|
|
`apt-transport-https` package which is needed to fetch packages over
|
|
`apt-transport-https` package which is needed to fetch packages over
|
|
|
HTTPS.
|
|
HTTPS.
|
|
|
|
|
|
|
|
- `$ sudo apt-get install -y apt-transport-https`
|
|
|
|
|
|
|
+ $ sudo apt-get install -y apt-transport-https
|
|
|
|
|
|
|
|
## Package details
|
|
## Package details
|
|
|
|
|
|
|
@@ -60,7 +60,7 @@ HTTPS.
|
|
|
|
|
|
|
|
Start Grafana by running:
|
|
Start Grafana by running:
|
|
|
|
|
|
|
|
- `$ sudo service grafana-server start`
|
|
|
|
|
|
|
+ $ sudo service grafana-server start
|
|
|
|
|
|
|
|
This will start the `grafana-server` process as the `grafana` user,
|
|
This will start the `grafana-server` process as the `grafana` user,
|
|
|
which was created during the package installation. The default HTTP port
|
|
which was created during the package installation. The default HTTP port
|
|
@@ -68,19 +68,19 @@ is `3000` and default user and group is `admin`.
|
|
|
|
|
|
|
|
To configure the Grafana server to start at boot time:
|
|
To configure the Grafana server to start at boot time:
|
|
|
|
|
|
|
|
- `$ sudo update-rc.d grafana-server defaults 95 10`
|
|
|
|
|
|
|
+ $ sudo update-rc.d grafana-server defaults 95 10
|
|
|
|
|
|
|
|
## Start the server (via systemd)
|
|
## Start the server (via systemd)
|
|
|
|
|
|
|
|
To start the service using systemd:
|
|
To start the service using systemd:
|
|
|
|
|
|
|
|
- `$ systemctl daemon-reload`
|
|
|
|
|
- `$ systemctl start grafana-server`
|
|
|
|
|
- `$ systemctl status grafana-server`
|
|
|
|
|
|
|
+ $ systemctl daemon-reload
|
|
|
|
|
+ $ systemctl start grafana-server
|
|
|
|
|
+ $ systemctl status grafana-server
|
|
|
|
|
|
|
|
Enable the systemd service so that Grafana starts at boot.
|
|
Enable the systemd service so that Grafana starts at boot.
|
|
|
|
|
|
|
|
- `sudo systemctl enable grafana-server.service`
|
|
|
|
|
|
|
+ sudo systemctl enable grafana-server.service
|
|
|
|
|
|
|
|
## Environment file
|
|
## Environment file
|
|
|
|
|
|