influxdb 笔记: 安装

本文介绍了InfluxDB的时间序列数据库的安装步骤及配置方法,包括添加YUM源、用户及目录设置、生成配置文件模版等内容,并提供了默认端口等关键信息。

# 存储引擎
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博客 ” ,链接:http://blog.itpub.net/26250550/viewspace-2129318/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26250550/viewspace-2129318/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值