TDengine 单机安装教程

安装

传送门: 官网安装教程
根据 系统直接下载对应的安装包最省事,二进制编译安装有概率会碰到依赖的问题。

TDengine 单机安装教程_第1张图片

在此直接给出可用的下载链接

a. centos

wget https://www.taosdata.com/assets-download/TDengine-server-2.4.0.0-Linux-x64.rpm
rpm -iv TDengine-server-2.4.0.0-Linux-x64.rpm 

b. ubuntu server

wget https://www.taosdata.com/assets-download/TDengine-server-2.4.0.0-Linux-x64.deb
dpkg -i TDengine-server-2.4.0.0-Linux-x64.deb 

下面为 centos 的安装过程。 单机部署直接回车即可

(base) [root@localhost download]#  rpm -iv TDengine-server-2.4.0.0-Linux-x64.rpm 
Preparing packages...
tdengine-2.4.0.0-3.x86_64
Start to install TDengine...

System hostname is: localhost.localdomain

Enter FQDN:port (like h1.taosdata.com:6030) of an existing TDengine cluster node to join
OR leave it blank to build one:

Enter your email address for priority support or enter empty to skip: 
Created symlink from /etc/systemd/system/multi-user.target.wants/taosd.service to /etc/systemd/system/taosd.service.

To configure TDengine : edit /etc/taos/taos.cfg
To start TDengine     : sudo systemctl start taosd
To access TDengine    : taos -h localhost.localdomain to login into TDengine server


TDengine is installed successfully!

开放端口

对于端口,TDengine会使用从serverPort起13个连续的TCP和UDP端口号,请务必在防火墙打开。因此如果是缺省配置,需要打开从6030到6042共13个端口,而且必须TCP和UDP都打开。

端口详细描述

a. centsos

firewall-cmd --zone=public --add-port=6030-6042/tcp --permanent
firewall-cmd --zone=public --add-port=6030-6042/udp --permanent
firewall-cmd --reload

b. ubuntu

ufw allow 6030:6042/tcp
ufw allow 6030:6042/udp
ufw reload 

你可能感兴趣的:(linux,tdengine,linux)