InfluxDB搭建及配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37814112/article/details/80731474

InfluxDB搭建及配置

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

一、Influxdb安装

[root@host-39-108-217-12 tools]# wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.4.x86_64.rpm
[root@host-39-108-217-12 tools]# yum localinstall influxdb-1.2.4.x86_64.rpm
[root@host-39-108-217-12 tools]# systemctl start influxdb.service

[root@host-39-108-217-12 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读写数据

[root@host-47-98-97-124 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"

[root@host-47-98-97-124 ~]# 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))

三、测试

这里写图片描述

四、Grafana Datasource及报表配置

阅读更多 登录后自动展开
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页