Created
October 14, 2021 22:05
-
-
Save isaqueprofeta/47e9e1ca0f271052d6d3093960bcdbfb to your computer and use it in GitHub Desktop.
Instalação Grafana no Rocky 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Desabilitar selinux | |
sudo sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config | |
sudo setenforce 0 | |
# Configurar o firewall | |
sudo firewall-cmd --add-port=3000/tcp --permanent | |
sudo firewall-cmd --reload | |
## Repositório | |
sudo tee /etc/yum.repos.d/grafana.repo <<EOL | |
[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 | |
EOL | |
## Instalação grafana | |
sudo dnf -y install grafana | |
## Inicializar serviço | |
sudo systemctl enable --now grafana-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment