centos7 离线安装infuxdb 2.4
1、influxdb官网下载 https://mirrors.tuna.tsinghua.edu.cn/influxdata/yum/el7-x86_64/
2、安装rpm包
yum install -y influxdb2-2.4.0.x86_64.rpm
3、启动
systemctl enable influxdb && systemctl start influxdb
4、在当前版本中,influx客户端从influxdb的安装包中分离了,需要单独下载安装,地址:https://docs.influxdata.com/influxdb/v2.4/tools/influx-cli/
5、安装
mkdir /opt/influxdb-cli tar -zxvf influxdb2-client-2.4.0-linux-amd64.tar.gz -C /opt
6、做软链接
ln -s /opt/influxdb2-client-2.4.0-linux-amd64/influx /usr/local/bin/influx
7、初始化,token在页面中获取
influx config create --config-name influxdb2.conf --host-url http://192.168.1.49:8086 --org origin --token 'AA7zB4gZzXzZbUz5I9ydBtGpBL83tjzBAJzokkLlfPUfQ2tFAqqCGs8V7ynI2wYFjP4Tu06gguJQA5VE46b38w==' --active