1、Cent OS 8安装
https://jasper-zhang1.gitbooks.io/influxdb/content/Introduction/installation.html
[root@izbp1b6ddawe4svwf8j360z influxdb]# cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
> [influxdb]
> name = InfluxDB Repository - RHEL \$releasever
> baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
> enabled = 1
> gpgcheck = 1
> gpgkey = https://repos.influxdata.com/influxdb.key
> EOF
[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/$releasever/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
[root@izbp1b6ddawe4svwf8j360z influxdb]# yum install influxdb
influxdb | 2.5 kB 00:00:00
influxdb/7/x86_64/primary_db | 55 kB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package influxdb.x86_64 0:1.8.6-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
influxdb x86_64 1.8.6-1 influxdb 61 M
Transaction Summary
==================================================================================================================================================
Install 1 Package
Total download size: 61 M
Installed size: 61 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/influxdb/packages/influxdb-1.8.6.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2582e0c5: NOKEY 00:00:00 ETA
Public key for influxdb-1.8.6.x86_64.rpm is not installed
influxdb-1.8.6.x86_64.rpm | 61 MB 00:00:12
Retrieving key from https://repos.influxdata.com/influxdb.key
Importing GPG key 0x2582E0C5:
Userid : "InfluxDB Packaging Service <support@influxdb.com>"
Fingerprint: 05ce 1508 5fc0 9d18 e99e fb22 684a 14cf 2582 e0c5
From : https://repos.influxdata.com/influxdb.key
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : influxdb-1.8.6-1.x86_64 1/1
Created symlink from /etc/systemd/system/influxd.service to /usr/lib/systemd/system/influxdb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/influxdb.service to /usr/lib/systemd/system/influxdb.service.
Verifying : influxdb-1.8.6-1.x86_64 1/1
Installed:
influxdb.x86_64 0:1.8.6-1
Complete!
[root@izbp1b6ddawe4svwf8j360z influxdb]# sudo service influxdb start
Redirecting to /bin/systemctl start influxdb.service
2、Windows 安装
https://jasper-zhang1.gitbooks.io/influxdb/content/Introduction/installation.html
配置本地映射文件
写批处理文件:先启动server后启动client->启动后不可关闭server(server是client的守护线程)
成功后效果