环境
系统:CentOS 7.5
软件:grafana-5.2.2.linux-amd64.tar.gz
安装
下载二进制包
地址:https://grafana.com/grafana/download-
安装
# tar -xzvf grafana-5.2.2.linux-amd64.tar.gz # mv grafana-5.2.2 /usr/local/grafana
-
配置
# vim /usr/local/grafana/conf/defaults.ini http_port = 80
启动
-
添加启动服务
# vim /usr/lib/systemd/system/grafana-server.service [Unit] Description=Grafana After=network.target [Service] Type=notify ExecStart=/usr/local/grafana/bin/grafana-server -homepath /usr/local/grafana Restart=on-failure [Install] WantedBy=multi-user.target
-
启动
# systemctl enable grafana-server.service # systemctl start grafana-server.service
访问
web地址:http://ip
账号密码:admin
/admin