taos 是 2019 年下半年在朋友圈刷屏的项目,国内公司开发的专注于时间序列的存储,官宣的性能报告十分感人。
用InfluxDB开源的性能测试工具对比InfluxDB和TDengine
$ yum install TDengine-server-1.6.5.5-Linux-x64.rpm
配置文件:
/etc/taos/taos.cfg
启动:
$ systemctl start taosd
操作 taos:
$ taos
Welcome to the TDengine shell from linux, community client version:1.6.5.5 community server version:1.6.5.5
Copyright (c) 2017 by TAOS Data, Inc. All rights reserved.
taos>
如果遇到下面的问题,在 /etc/taos/taos.cfg 中设置 local 和 charset:
Welcome to the TDengine shell from linux, community client version:1.6.5.5 02/12 01:28:31.055738 4303 7f1de0216740 ERROR UTL can't get locale from system
Invalid locale:, please set the valid locale in config file
failed to get charset, please set the valid charset in config file
# system locale
locale en_US.UTF-8
# default system charset
charset UTF-8
写入查询:
create database db;
use db;
create table t (ts timestamp, speed int);
insert into t values ('2019-07-15 00:00:00', 10);
insert into t values ('2019-07-15 01:00:00', 20);
select * from t;
ts | speed |
===================================
19-07-15 00:00:00.000| 10|
19-07-15 01:00:00.000| 20|
Query OK, 2 row(s) in set (0.001700s)
更详细的说明文档:TDengine文档。
Copyright @2011-2019 All rights reserved. 转载请添加原文连接,合作请加微信lijiaocn或者发送邮件: [email protected],备注网站合作
友情链接: Some Online Tools Develop by Me 系统软件 程序语言 运营经验 水库文集 网络课程 微信网文