# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# yum install initscripts urw-fonts wget
# wget https://dl.grafana.com/oss/release/grafana-6.7.2-1.x86_64.rpm
# rpm -Uvh grafana-6.7.2-1.x86_64.rpm
# sudo systemctl daemon-reload
# sudo systemctl start grafana-server
# sudo systemctl status grafana-server
# sudo systemctl enable grafana-server.service
访问:http://IP:3000,默认账号/密码:admin/admin
# rpm -ql grafana-6.7.2 | more
# cat /etc/passwd | grep grafana
grafana:x:997:995:grafana user:/usr/share/grafana:/sbin/nologin
# cat /etc/group | grep grafana
grafana:x:995:
# more /etc/sysconfig/grafana-server
GRAFANA_USER=grafana
GRAFANA_GROUP=grafana
GRAFANA_HOME=/usr/share/grafana
LOG_DIR=/var/log/grafana
DATA_DIR=/var/lib/grafana
MAX_OPEN_FILES=10000
CONF_DIR=/etc/grafana
CONF_FILE=/etc/grafana/grafana.ini
RESTART_ON_UPGRADE=true
PLUGINS_DIR=/var/lib/grafana/plugins
PROVISIONING_CFG_DIR=/etc/grafana/provisioning
# Only used on systemd systems
PID_FILE_DIR=/var/run/grafana