ITPub博客

首页 > 应用开发 > IT综合 > influxdb 笔记: 安装

influxdb 笔记: 安装

原创 IT综合 作者:G8bao7 时间:2016-11-29 17:03:58 0 删除 编辑

# 存储引擎
https://docs.influxdata.com/influxdb/v0.13/concepts/storage_engine/
一开始使用LevelDB(Log Structured Merge Tree or LSM Tree),0.9后使用BoltDB( mmap B+Tree database )

# 添加yum源
> 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

#
sudo yum install influxdb
sudo service influxdb start

#
groupadd influxdb 
useradd -g influxdb influxdb 
mkdir -p /influxdb/data /influxdb/meta /influxdb/wal /influxdb/hinted-handoff
chown -R influxdb:influxdb /influxdb


# 生成配置文件模版
influxd config > /etc/influxdb/influxdb.generated.conf

# 编辑meta和data路径
cp /etc/influxdb/influxdb.generated.conf /etc/influxdb/influxdb.conf

# 配置文件默认路径 /etc/influxdb/
# 默认配置文件 /etc/influxdb/influxdb.conf
# 使用环境变量修改默认配置文件
> vim /etc/profile
export INFLUXDB_CONFIG_PATH=/etc/influxdb/
> source /etc/profile

# 启动
service influxdb start

# 启动,指定配置文件,但不是 daemon模式
influxd -config influxdb.conf

#
默认端口: LOCAL-8088, TCP-8086, UDP-8089, ADMIN-8083


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26250550/viewspace-2129318/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-11-04

  • 博文量
    496
  • 访问量
    1258265