如何插入数据到influxdb

如何插入数据到influxdb,第1张

一、安装要求:

1、需要Linux的root权限进行安装。

2、由于会默认使用到8083和8086两个端口,所以要保证这两个端口没有被占用。

Once installation is complete you can change those ports and other options in the configuration file, which is located by default in /etc/influxdb.

二、安装:

这里使用的Centos *** 作系统。

1、首先在命令行执行下面的脚本,生成所需的yum源:

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo

[influxdb]

name = InfluxDB Repository - RHEL \$releasever

需要加双引号,如下的channel字段

curl -i -XPOST "http://localhost:8086/write?db=test&precision=s" --data-binary "log_test32,host=abc channel=\"ss\",size=8889"


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11477823.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-16
下一篇 2023-05-16

发表评论

登录后才能评论

评论列表(0条)

保存