RPM 기반에서 InfluxDB 설치에 대한 포스팅입니다.
설치환경 : CentOS7
설치버전 : influxdb-1.1.1.x86_64.rpm
1.설치
1 2 |
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 |
2.influxDB 폴더생성 및 권한설정
1 2 3 4 5 6 7 |
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 |
3.influxDB Config
1 |
vi influxdb.conf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
[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 실행
1 2 |
chkconfig --add influxdb service influxdb start |
5.InfluxDB Web UI
Web UI URL : http://influxdbip:8083
7.InfluxDB 인증설정
1 |
vi influxdb.conf |
1 |
service influxdb restart |