# 存储引擎
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/
本文介绍了InfluxDB的时间序列数据库的安装步骤及配置方法,包括添加YUM源、用户及目录设置、生成配置文件模版等内容,并提供了默认端口等关键信息。
1234

被折叠的 条评论
为什么被折叠?



