influxdb安装
官网:https://portal.influxdata.com/downloads/
RedHat & CentOS
SHA256: bab2228b37d6034b3a325240c7b5b51cbfd86eb8e4cf4622e2fc33e1f348cbf4
wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.0.x86_64.rpm
sudo yum localinstall influxdb-1.8.0.x86_64.rpm
systemctl enable influxdb
systemctl start influxdb
influxdb安装步骤(二进制)
安装目录 /data/tools
1、wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.4_linux_amd64.tar.gz
2、tar xvfz influxdb-1.8.4_linux_amd64.tar.gz
3、在/etc/systemd/system/目录新建influxdb.service
[Unit]
Description=InfluxDB is an open-source, distributed, time series database
Documentation=https://docs.influxdata.com/influxdb/
After=network-online.target
[Service]
User=root
Group=root
LimitNOFILE=65536
ExecStart=/data/tools/influxdb/usr/bin/influxd -config /data/tools/influxdb/etc/influxdb/influxdb.conf $INFLUXD_OPTS
KillMode=control-group
Restart=on-failure
RestartSec=2s
[Install]
WantedBy=multi-user.target
Alias=influxd.service
4、systemctl enable influxdb
5、systemctl start influxdb
6、添加环境变量
vim /etc/profile
export PATH=$PATH:/data/tools/influxdb/usr/bin
source /etc/profile
7、登录influxdb
输入influx