2022-06-13 11:26:32 +00:00
|
|
|
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
|
|
|
|
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
|
|
|
apt-get update
|
2022-06-13 11:49:59 +00:00
|
|
|
apt-get install -y grafana iptables
|
2022-06-13 11:26:32 +00:00
|
|
|
|
|
|
|
cp grafana.ini /etc/grafana/grafana.ini
|
2022-06-13 11:49:59 +00:00
|
|
|
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3000
|
2022-06-13 11:39:35 +00:00
|
|
|
|
2022-06-13 11:26:32 +00:00
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable grafana-server
|
|
|
|
systemctl start grafana-server
|