수요일, 5월 22, 2024
HomeLinuxInfluxDB 설치

InfluxDB 설치

RPM 기반에서 InfluxDB 설치에 대한 포스팅입니다.

설치환경 : CentOS7
설치버전 : influxdb-1.1.1.x86_64.rpm

1.설치

wget --no-check-certificate https://repos.influxdata.com/rhel/7/x86_64/stable/influxdb-1.1.1.x86_64.rpm
yum localinstall influxdb-1.1.1.x86_64.rpm

influxdb-install-001

influxdb-install-002

2.influxDB 폴더생성 및 권한설정

cd /etc/influxdb/
mv influxdb.conf influxdb.conf.org
mkdir -p /sw/influxdb/meta
mkdir -p /sw/influxdb/data
mkdir -p /sw/influxdb/wal
mkdir -p /sw/influxdb/hh
chown -R influxdb:influxdb /sw/influxdb

influxdb-install-003

3.influxDB Config

vi influxdb.conf

influxdb-install-004

 [meta]
 # Controls if this node should run the metaservice and participate in the Raft group
 enabled = true
 # Where the metadata/raft database is stored
 dir = "/sw/influxdb/meta"
 bind-address = ":8088"
 retention-autocreate = true
 election-timeout = "1s"
 heartbeat-timeout = "1s"
 leader-lease-timeout = "500ms"
 commit-timeout = "50ms"
 cluster-tracing = false

 [data]
 # Controls if this node holds time series data shards in the cluster
 enabled = true
 dir = "/sw/influxdb/data"
 wal-dir = "/sw/influxdb/wal"
 wal-logging-enabled = true
 data-logging-enabled = true

 [hinted-handoff]
 enabled = true
 dir = "/sw/influxdb/hh"
 max-size = 1073741824
 max-age = "168h"
 retry-rate-limit = 0

 [admin]
 enabled = true
 bind-address = ":8083"
 https-enabled = false
 https-certificate = "/etc/ssl/influxdb.pem"
 [http]
 enabled = true
 bind-address = ":8086"
 #사용자 등록후에 true로 수정후 재시작 service influxdb restart
 auth-enabled = false 
 log-enabled = false
 write-tracing = false

4.influxDB 실행

 chkconfig --add influxdb
 service influxdb start

influxdb-install-005

5.InfluxDB Web UI
Web UI URL : http://influxdbip:8083
influxdb-install-006

6.InfluxDB User 생성
influxdb-install-007

influxdb-install-008

influxdb-install-009

7.InfluxDB 인증설정

vi influxdb.conf

influxdb-install-015

influxdb-install-016

service influxdb restart

influxdb-install-017

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular