欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

InfluxDB搭建及配置

程序员文章站 2024-03-21 08:03:03
...

InfluxDB搭建及配置

url:https://www.cnblogs.com/yyhh/p/5990228.html
     https://docs.influxdata.com/influxdb/v1.5/guides/writing_data/

一、Influxdb安装

[aaa@qq.com tools]# wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.4.x86_64.rpm
[aaa@qq.com tools]# yum localinstall influxdb-1.2.4.x86_64.rpm
[aaa@qq.com tools]# systemctl start influxdb.service

[aaa@qq.com tools]# ps -ef | grep influxdb
influxdb 14230     1  0 11:39 ?        00:00:00 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
root     14251 24176  0 11:39 pts/1    00:00:00 grep --color=auto influxdb

二、Influxdb配置

port 8083:管理页面端口,访问localhost:8083可以进入你本机的influxdb管理页面
port 8086:http连接influxdb client端口,一般使用该端口往本机的influxdb读写数据

[aaa@qq.com tools]# vi /etc/influxdb/influxdb.conf
[admin]
  # Determines whether the admin service is enabled.
  enabled = true   #开启

  # The default bind address used by the admin service.
  bind-address = ":8083"  #开启

  # Whether the admin service should use HTTPS.
  # https-enabled = false

  # The SSL certificate used when HTTPS is enabled.
  # https-certificate = "/etc/ssl/influxdb.pem"

[aaa@qq.com ~]# ss -tnulp | grep influxd
tcp    LISTEN     0      128      :::8083                 :::*                   users:(("influxd",pid=12267,fd=6))
tcp    LISTEN     0      128      :::8086                 :::*                   users:(("influxd",pid=12267,fd=7))
tcp    LISTEN     0      128      :::8088                 :::*                   users:(("influxd",pid=12267,fd=3))

三、测试

InfluxDB搭建及配置

四、Grafana Datasource及报表配置