Centos7 安装 TDengine

Centos7 安装 TDengine

1、简介

官网: https://www.taosdata.com

TDengine 是一款开源、高性能、云原生的时序数据库(Time Series Database, TSDB), 它专为物联网、车联网、工业互联网、金融、IT 运维等场景优化设计。同时它还带有内建的缓存、流式计算、数据订阅等系统功能,能大幅减少系统设计的复杂度,降低研发和运营成本,是一款极简的时序数据处理平台。

2、安装

  • 在linux系统中,运行环境最低要求如下:
软件 版本
linux 内核版本 3.10.0-1160.83.1.el7.x86_64
glibc 版本 2.17
  • 新增hostname,文件中新增 taos1
shell 复制代码
vi /etc/hostname 
  • 创建安装目录
bash 复制代码
mkdir -p /usr/local/tdengine/
  • 下载安装包,并把安装包上传到/usr/local/tdengine/
  • 解压文件夹
bash 复制代码
tar -zxvf TDengine-server-3.0.7.0-Linux-x64.tar.gz 
  • 进入解压文件
bash 复制代码
cd TDengine-server-3.0.7.0
  • 执行安装命令
bash 复制代码
./install.sh 
  • 修改taos.cfg配置文件,如图 ip改为服务器ip/hostname(重点)
shell 复制代码
vi /etc/taos/taos.cfg
  • 配置hosts (添加:前面是td部署服务器ip,后面是td部署服务器hostname值)
shell 复制代码
vi /etc/hosts
  • 使配置生效
shell 复制代码
/etc/init.d/network restart

3、启动

安装后,请使用 systemctl 命令来启动 TDengine 的服务进程。

shell 复制代码
systemctl start taosd
systemctl start taosadapter

可以使用 systemctl 来单独管理上面的每一个服务

shell 复制代码
systemctl start taosd
systemctl stop taosd
systemctl restart taosd
systemctl status taosd

4、异常

4.1 Mnode not found 异常

输入taos,出现 Mnode not found 异常,如下

bash 复制代码
[root@localhost TDengine-server-3.0.7.0]# taos
Welcome to the TDengine Command Line Interface, Client Version:3.0.7.0
Copyright (c) 2022 by TDengine, all rights reserved.

failed to connect to server, reason: Mnode not found

卸载

shell 复制代码
#卸载命令(tar包解压方式安装的):
rmtaos
#卸载后删除配置文件
rm -rf /var/log/taos 
rm -rf /etc/taos
rm -rf /var/lib/taos/

重新解压安装

shell 复制代码
tar -zxvf TDengine-server-<version>-Linux-x64.tar.gz
sudo ./install.sh
4.2 Client and server's time is not synchronized 异常
bash 复制代码
yum -y install ntp ntpdate
ntpdate cn.pool.ntp.org

5、客户端连接

DBeaver 下载

相关推荐
zhexunnb几秒前
深挖SAP系统模块价值,助力无锡制造企业打通数字化全链路
运维
weipt1 小时前
利用wsl给windows电脑上安装一个ubuntu
linux·运维·ubuntu
jarreyer1 小时前
【软件操作】加快资源管理器打开速度
运维
楚疏笃1 小时前
linux下给OpenCloudOS根目录扩容
linux·运维·服务器
dog2501 小时前
网络的时延抖动
linux·运维·网络
程序员-Benothing2 小时前
Linux 软件包管理:yum / apt / dnf 命令使用全解析
linux·运维·服务器
DevangLic2 小时前
opencode go要完蛋了吗
运维·学习
SEO_juper2 小时前
你的服务器正在被 AI 爬虫“白嫖“带宽:2026 用日志把 Googlebot 和 AI 洪流分开算账(附脚本)
运维·人工智能·爬虫·python·chatgpt·seo
志栋智能2 小时前
超自动化巡检报告:从数据表格到智能洞察
运维·自动化
芯飞云2 小时前
芯飞云服务器日常使用体验:从配置选型到实际负载的技术分析
运维·服务器