Академический Документы
Профессиональный Документы
Культура Документы
Step: 1.
$ wget
https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.3-1.x86_64.rpm
[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/7/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key
https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
Step: 2
Start the server (init.d service)
# systemctl daemon-reload
Step: 3
Enable the systemd service to start at boot
Step: 4
Set Configuration add this line in ini file
# vi /etc/grafana/grafana.ini
instance_name = ${HOSTNAME}
admin_user = admin
client_secret = 0ldS3cretKey
# export GF_DEFAULT_INSTANCE_NAME=my-instance
# export GF_SECURITY_ADMIN_USER=true
# export GF_AUTH_GOOGLE_CLIENT_SECRET=newS3cretKey
http_port
The port to bind to, defaults to 3000. To use port 80 you need to either give the Grafana
binary permission for example:
hostname:3000