首先、下载 grafana_6.1.3_amd64.deb 和opentsdb-2.4.0_all.deb deb包
其次、安装这两个deb报
dpkg -i opentsdb-2.4.0_all.deb
dpkg -i grafana_6.1.3_amd64.deb
再次、备份原始文件,替换配置文件、数据和更换相应权限,启动
mv /etc/opentsdb /etc/opentsdb.bk
mv /etc/grafana /etc/grafana.bk
mv /var/lib/grafana /var/lib/grafana.bk
从老的grafana把对应数据拷贝至新安装的机器的当前用户的家目录下面
scp -r /etc/opentsdb w@hd1:./
scp -r /etc/grafana w@hd1:./
mv opentsdb /etc/;chown root. -R /etc/opentsdb
mv grafana /etc/;chown root.grafana /etc/grafana
scp -r /var/lib/grafana w@hd1:./
mv grafana /var/lib/;chown grafana :grafana -R /var/lib/grafana
启动
/etc/init.d/grafana-server start
/etc/init.d/opentsdb start
日志路径
root@cho1:/var/lib/grafana# ll /var/log/grafana/grafana.log
root@cho:/var/lib/grafana# ll /var/log/opentsdb/opentsdb.log