官网链接
https://portal.influxdata.com/downloads/
1、选择CentOS,添加InfluxDB的repo源
cat <<EOF | sudo tee /etc/yum.repos.d/influxdata.repo [influxdata] name = InfluxData Repository - Stable baseurl = https://repos.influxdata.com/stable/\$basearch/main enabled = 1 gpgcheck = 1 gpgkey = https://repos.influxdata.com/influxdata-archive_compat.key EOF


2、安装InfluxDB
yum -y install influxdb2

3、启动InfluxDB和设置开机自启
systemctl start influxdb systemctl enable influxdb

4、下载Chronograf时间序列数据可视化

wget https://dl.influxdata.com/chronograf/releases/chronograf-1.10.1.x86_64.rpm

5、安装Chronograf
yum localinstall chronograf-1.10.1.x86_64.rpm

6、启动Chronograf和设置开机自启
systemctl start chronograf systemctl enable chronograf

7、Firewall防火墙放行常用端口
firewall-cmd --zone=public --add-port=8086/tcp --permanent firewall-cmd --zone=public --add-port=8088/tcp --permanent firewall-cmd --reload

8、浏览器访问http://主机地址:8086
