您的位置:首页 > 其它

influxdb 安装配置详解

2016-04-03 15:28 483 查看
1:简介
InfluxDB 是一个开源分布式时序、事件和指标数据库。使用 Go 语言编写,无需外部依赖。其设计目标是实现分布式和水平伸缩扩展。
1、它有三大特性:1. Time Series (时间序列):你可以使用与时间有关的相关函数(如最大,最小,求和等)2. Metrics(度量):你可以实时对大量数据进行计算3. Eevents(事件):它支持任意的事件数据
2、特点schemaless(无结构),可以是任意数量的列Scalablemin, max, sum, count, mean, median 一系列函数,方便统计Native HTTP API, 内置http支持,使用http读写Powerful Query Language 类似sqlBuilt-in Explorer 自带管理工具
3、API
InfluxDB 支持两种api方式HTTP APIProtobuf API
2:安装部署
添加yum 源
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo[influxdb]name = InfluxDB Repository - RHEL \$releaseverbaseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stableenabled = 1gpgcheck = 1gpgkey = https://repos.influxdata.com/influxdb.keyEOF 3:安装 yum install influxdb -y
4:启动服务、添加开机启动 service influxdb startsystemctl enable influxdb service influxdb status

5:服务默认使用端口:Networking By default, InfluxDB uses the following network ports:TCP port 8083 is used for InfluxDB’s Admin panelTCP port 8086 is used for client-server communication over InfluxDB’s HTTP APITCP ports 8088 and 8091 are required for clustered InfluxDB instances

6:服务验证输入influx 进入数据库[root@ctn-7-12 ~]# influxVisit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.Connected to http://localhost:8086 version 0.11.0InfluxDB shell 0.11.0

1、创建一个查询用户CREATE USER "ptquery" WITH PASSWORD 'ptquery'
2、查看用户:> show users;user adminptquery falseptdb1 fals
3、也可以在页面创建查询用户CREATE USER "ptquery" WITH PASSWORD 'ptquery'
4、查看服务端口[root@ctn-7-12 ~]# netstat -tunlpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::8083 :::* LISTEN 22124/influxd tcp6 0 0 :::8086 :::* LISTEN 22124/influxd
4、浏览器访问数据库管理平台:http://172.16.7.11:8083/
参考信息:https://influxdata.com/downloads/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息