Skip to content

Instantly share code, notes, and snippets.

@galanteh
Created November 5, 2019 20:43
Show Gist options
  • Save galanteh/98f4a5f625c14d5095b86072a0d6540f to your computer and use it in GitHub Desktop.
Save galanteh/98f4a5f625c14d5095b86072a0d6540f to your computer and use it in GitHub Desktop.
Install Grafana over CentOS7.5 on Port 80
sudo bash -c "cat << EOF > /etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
EOF"
sudo yum -y install grafana
sudo yum -y install fontconfig freetype* urw-fonts
sudo bash -c 'sed -i "s/;http_port = 3000/http_port = 80/g" /etc/grafana/grafana.ini'
sudo bash -c 'sed -i "s/User=grafana/User=root/g" /usr/lib/systemd/system/grafana-server.service'
sudo bash -c 'sed -i "s/Group=grafana/Group=root/g" /usr/lib/systemd/system/grafana-server.service'
sudo systemctl daemon-reload
sudo systemctl start grafana-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment