InfluxDB2/Installation
From r00tedvw.com wiki
(Difference between revisions)
(Created page with "[InfluxDB2/Installation|Installation]") |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | [InfluxDB2/Installation|Installation] | + | [[InfluxDB2/Installation|Installation]] | [[InfluxDB2/Configuration|Configuration]] |
+ | =CentOS7= | ||
+ | ==Add repo== | ||
+ | <nowiki>~$ vim /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</nowiki> | ||
+ | ==Start== | ||
+ | <nowiki>~$ sudo systemctl enable influxdb | ||
+ | ~$ sudo systemctl start influxdb</nowiki> | ||
+ | ==Ports== | ||
+ | <nowiki>~$ sudo firewall-cmd --zone=public --permanent --add-port=8086/tcp | ||
+ | ~$ sudo firewall-cmd --zone=public --permanent --add-port=8088/tcp</nowiki> | ||
+ | ==Install CLI== | ||
+ | <nowiki>~$ wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.4.0-linux-amd64.tgz | ||
+ | ~$ tar -xvfz influxdb2-client-2.4.0-linux-amd64.tgz | ||
+ | ~$ sudo cp ./influxdb2-client-2.4.0-linux-amd64/influx /usr/bin | ||
+ | ~$ sudo chmod 755 /usr/bin/influx |
Latest revision as of 22:19, 5 September 2022
Installation | Configuration
Contents |
[edit] CentOS7
[edit] Add repo
~$ vim /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
[edit] Start
~$ sudo systemctl enable influxdb ~$ sudo systemctl start influxdb
[edit] Ports
~$ sudo firewall-cmd --zone=public --permanent --add-port=8086/tcp ~$ sudo firewall-cmd --zone=public --permanent --add-port=8088/tcp
[edit] Install CLI
~$ wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.4.0-linux-amd64.tgz ~$ tar -xvfz influxdb2-client-2.4.0-linux-amd64.tgz ~$ sudo cp ./influxdb2-client-2.4.0-linux-amd64/influx /usr/bin ~$ sudo chmod 755 /usr/bin/influx