ps:之前安装的版本是TDEngine 3.0.2.6 该版本的超级表的查询排序效率极低,据官方解释说,因为查询的是超级表,而超级表的ts是可能存在重复的,所以导致索引失效。
一直在等待官方版本更新,希望能解决这个问题,现在终于等来了3.0.5.0,赶紧安装试试,看看是不是解决了我关心的问题。
一、安装步骤
- 从官网下载3.0.5.0压缩包,并执行解压、install.sh执行:
解压:tar -zxvf TDengine-server-3.0.5.0-Linux-x64.tar.gz
执行:执行 sh install.sh
2.安装成功会提示如下信息:
To configure TDengine : edit /etc/taos/taos.cfg
To configure taos Adapter : edit /etc/taos/taosadapter.toml
To start TDengine : sudo systemctl start taosd
To start taos Adapter : sudo systemctl start taosadapter
To access TDengine : taos -h appsvr1 to login into TDengine server
3.为服务器配置FQDN
1)首先确认服务器的hostname:
appadm@appsvr1:~$ hostname
appsvr1
#如果hostname不是你想要的,需要修改/etc/hostname文件,命令如下:
vim /etc/hostname
#将内容改成appsvr1
2)为appsvr1服务器配置FQDN:
# 修改/etc/hosts 文件:
vim /etc/hosts
#添加以下代码
192.168.124.160 appsvr1
# 如果有多个节点,那就要将内网/外网ip都列在hosts文件中
4.测试taos是否安装成功
root@appsvr1:/home/appadm# taos -h appsvr1
Welcome to the TDengine Command Line Interface, Client Version:3.0.5.0
Copyright (c) 2022 by TDengine, all rights reserved.
******************************** Tab Completion ************************************
* The TDengine CLI supports tab completion for a variety of items, *
* including database names, table names, function names and keywords. *
* The full list of shortcut keys is as follows: *
* [ TAB ] ...... complete the current word *
* ...... if used on a blank line, display all supported commands *
* [ Ctrl + A ] ...... move cursor to the st[A]rt of the line *
* [ Ctrl + E ] ...... move cursor to the [E]nd of the line *
* [ Ctrl + W ] ...... move cursor to the middle of the line *
* [ Ctrl + L ] ...... clear the entire screen *
* [ Ctrl + K ] ...... clear the screen after the cursor *
* [ Ctrl + U ] ...... clear the screen before the cursor *
**************************************************************************************
Server is Community Edition.
taos>
如果弹出上面的内容,则代表安装成功,然后就可以配置客户端、进行开发操作了