@@ -22,29 +22,29 @@ Description | Download
22
22
23
23
Add the following line to your ` /etc/apt/sources.list ` file.
24
24
25
- ` deb https://packagecloud.io/grafana/stable/debian/ wheezy main`
25
+ deb https://packagecloud.io/grafana/stable/debian/ wheezy main
26
26
27
27
Use the above line even if you are on Ubuntu or another Debian version.
28
28
There is also a testing repository if you want beta or release
29
29
candidates.
30
30
31
- ` deb https://packagecloud.io/grafana/testing/debian/ wheezy main`
31
+ deb https://packagecloud.io/grafana/testing/debian/ wheezy main
32
32
33
33
Then add the [ Package Cloud] ( https://packagecloud.io/grafana ) key. This
34
34
allows you to install signed packages.
35
35
36
- ` $ curl https://packagecloud.io/gpg.key | sudo apt-key add -`
36
+ $ curl https://packagecloud.io/gpg.key | sudo apt-key add -
37
37
38
38
Update your Apt repositories and install Grafana
39
39
40
- ` $ sudo apt-get update`
41
- ` $ sudo apt-get install grafana`
40
+ $ sudo apt-get update
41
+ $ sudo apt-get install grafana
42
42
43
43
On some older versions of Ubuntu and Debian you may need to install the
44
44
` apt-transport-https ` package which is needed to fetch packages over
45
45
HTTPS.
46
46
47
- ` $ sudo apt-get install -y apt-transport-https`
47
+ $ sudo apt-get install -y apt-transport-https
48
48
49
49
## Package details
50
50
@@ -60,27 +60,27 @@ HTTPS.
60
60
61
61
Start Grafana by running:
62
62
63
- ` $ sudo service grafana-server start`
63
+ $ sudo service grafana-server start
64
64
65
65
This will start the ` grafana-server ` process as the ` grafana ` user,
66
66
which was created during the package installation. The default HTTP port
67
67
is ` 3000 ` and default user and group is ` admin ` .
68
68
69
69
To configure the Grafana server to start at boot time:
70
70
71
- ` $ sudo update-rc.d grafana-server defaults 95 10`
71
+ $ sudo update-rc.d grafana-server defaults 95 10
72
72
73
73
## Start the server (via systemd)
74
74
75
75
To start the service using systemd:
76
76
77
- ` $ systemctl daemon-reload`
78
- ` $ systemctl start grafana-server`
79
- ` $ systemctl status grafana-server`
77
+ $ systemctl daemon-reload
78
+ $ systemctl start grafana-server
79
+ $ systemctl status grafana-server
80
80
81
81
Enable the systemd service so that Grafana starts at boot.
82
82
83
- ` sudo systemctl enable grafana-server.service`
83
+ sudo systemctl enable grafana-server.service
84
84
85
85
## Environment file
86
86
0 commit comments