TDengine 安装

一、下载RPM包,并安装

 

[root@localhost opt]# rpm -ivh TDengine-server-2.4.0.20-Linux-x64.rpm
准备中...                          ################################# [100%]
正在升级/安装...
   1:tdengine-2.4.0.20-3              ################################# [100%]
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!
[root@localhost opt]# systemctl status taosd
● taosd.service - TDengine server service
   Loaded: loaded (/etc/systemd/system/taosd.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
[root@localhost opt]# systemctl start taosd
[root@localhost opt]# systemctl enable taosd
[root@localhost opt]# netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:6035            0.0.0.0:*               LISTEN      14751/taosd
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      1903/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1219/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1228/cupsd
tcp        0      0 0.0.0.0:6040            0.0.0.0:*               LISTEN      14751/taosd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1441/master
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      14409/sshd: root@pt
tcp        0      0 0.0.0.0:6030            0.0.0.0:*               LISTEN      14751/taosd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      826/rpcbind
tcp6       0      0 :::22                   :::*                    LISTEN      1219/sshd
tcp6       0      0 ::1:631                 :::*                    LISTEN      1228/cupsd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1441/master
tcp6       0      0 ::1:6010                :::*                    LISTEN      14409/sshd: root@pt
tcp6       0      0 :::3306                 :::*                    LISTEN      1941/mysqld
tcp6       0      0 :::111                  :::*                    LISTEN      826/rpcbind


[root@localhost opt]# taosd
05/16 17:39:09.752381 00014831 DND start to initialize TDengine
05/16 17:39:09.752551 00014831 DND step:dnode-tfile is initialized
05/16 17:39:09.752571 00014831 DND step:dnode-rpc is initialized
05/16 17:39:09.753189 00014831 UTL localEp is: localhost:6030
05/16 17:39:09.753767 00014831 UTL WARN timezone not configured, set to system default: (CST, +0800)
05/16 17:39:09.753874 00014831 UTL WARN locale not configured, set to system default:zh_CN.UTF-8
05/16 17:39:09.753896 00014831 UTL WARN charset not configured, set to system default:UTF-8
05/16 17:39:09.753948 00014831 UTL    check global cfg completed
05/16 17:39:09.753956 00014831 UTL ==================================
05/16 17:39:09.753962 00014831 UTL    taos config & system info:
05/16 17:39:09.753967 00014831 UTL ==================================
05/16 17:39:09.753976 00014831 UTL  firstEp:                localhost:6030
05/16 17:39:09.753984 00014831 UTL  secondEp:               localhost:6030
05/16 17:39:09.753989 00014831 UTL  fqdn:                   localhost
05/16 17:39:09.753994 00014831 UTL  serverPort:             6030
05/16 17:39:09.754000 00014831 UTL  configDir:              /etc/taos
05/16 17:39:09.754005 00014831 UTL  logDir:                 /var/log/taos
05/16 17:39:09.754010 00014831 UTL  scriptDir:              /etc/taos
05/16 17:39:09.754016 00014831 UTL  arbitrator:
05/16 17:39:09.754022 00014831 UTL  numOfThreadsPerCore:    1.000000
05/16 17:39:09.754037 00014831 UTL  numOfCommitThreads:     4
05/16 17:39:09.754042 00014831 UTL  ratioOfQueryCores:      1.000000
05/16 17:39:09.754048 00014831 UTL  maxNumOfDistinctRes:    10000000
05/16 17:39:09.754053 00014831 UTL  numOfMnodes:            1
05/16 17:39:09.754058 00014831 UTL  vnodeBak:               1
05/16 17:39:09.754063 00014831 UTL  telemetryReporting:     1
05/16 17:39:09.754068 00014831 UTL  dnodeNopLoop:           0
05/16 17:39:09.754073 00014831 UTL  tcpConnTimeout:         1000(ms)
05/16 17:39:09.754079 00014831 UTL  syncCheckInterval:      1500(ms)
05/16 17:39:09.754084 00014831 UTL  balance:                0
05/16 17:39:09.754088 00014831 UTL  balanceInterval:        300
05/16 17:39:09.754094 00014831 UTL  offlineInterval:        3
05/16 17:39:09.754099 00014831 UTL  keepTimeOffset:         0
05/16 17:39:09.754104 00014831 UTL  role:                   0
05/16 17:39:09.754109 00014831 UTL  maxTmrCtrl:             512
05/16 17:39:09.754114 00014831 UTL  monitorInterval:        30(s)
05/16 17:39:09.754119 00014831 UTL  monitorReplica:         1
05/16 17:39:09.754124 00014831 UTL  offlineThreshold:       864000(s)
05/16 17:39:09.754129 00014831 UTL  rpcTimer:               300(ms)
05/16 17:39:09.754134 00014831 UTL  rpcMaxTime:             600(s)
05/16 17:39:09.754139 00014831 UTL  rpcForceTcp:            0
05/16 17:39:09.754145 00014831 UTL  statusInterval:         1(s)
05/16 17:39:09.754149 00014831 UTL  shellActivityTimer:     3(s)
05/16 17:39:09.754155 00014831 UTL  minSlidingTime:         10(ms)
05/16 17:39:09.754215 00014831 UTL  minIntervalTime:        1(ms)
05/16 17:39:09.754223 00014831 UTL  maxStreamCompDelay:     20000(ms)
05/16 17:39:09.754228 00014831 UTL  maxFirstStreamCompDelay:10000(ms)
05/16 17:39:09.754233 00014831 UTL  retryStreamCompDelay:   10000(ms)
05/16 17:39:09.754252 00014831 UTL  streamCompDelayRatio:   0.100000
05/16 17:39:09.754263 00014831 UTL  maxVgroupsPerDb:        0
05/16 17:39:09.754270 00014831 UTL  maxTablesPerVnode:      1000000
05/16 17:39:09.754278 00014831 UTL  minTablesPerVnode:      1000
05/16 17:39:09.754285 00014831 UTL  tableIncStepPerVnode:   1000
05/16 17:39:09.754293 00014831 UTL  cache:                  16(Mb)
05/16 17:39:09.754298 00014831 UTL  blocks:                 6
05/16 17:39:09.754303 00014831 UTL  days:                   10
05/16 17:39:09.754308 00014831 UTL  keep:                   3650
05/16 17:39:09.754313 00014831 UTL  minRows:                100
05/16 17:39:09.754318 00014831 UTL  maxRows:                4096
05/16 17:39:09.754325 00014831 UTL  precision:              0
05/16 17:39:09.754338 00014831 UTL  comp:                   2
05/16 17:39:09.754346 00014831 UTL  walLevel:               1
05/16 17:39:09.754354 00014831 UTL  fsync:                  3000
05/16 17:39:09.754359 00014831 UTL  replica:                1
05/16 17:39:09.754364 00014831 UTL  partitions:             4
05/16 17:39:09.754369 00014831 UTL  quorum:                 1
05/16 17:39:09.754373 00014831 UTL  update:                 0
05/16 17:39:09.754378 00014831 UTL  cachelast:              0
05/16 17:39:09.754383 00014831 UTL  compressMsgSize:        524288
05/16 17:39:09.754389 00014831 UTL  compressColData:        -1
05/16 17:39:09.754394 00014831 UTL  maxSQLLength:           1048576(byte)
05/16 17:39:09.754399 00014831 UTL  maxWildCardsLength:     100(byte)
05/16 17:39:09.754406 00014831 UTL  maxRegexStringLen:      128(byte)
05/16 17:39:09.754412 00014831 UTL  maxNumOfOrderedRes:     1000000
05/16 17:39:09.754418 00014831 UTL  queryBufferSize:        -1(byte)
05/16 17:39:09.754426 00014831 UTL  retrieveBlockingModel:  0
05/16 17:39:09.754433 00014831 UTL  keepColumnName:         1
05/16 17:39:09.754438 00014831 UTL  timezone:                (CST, +0800)
05/16 17:39:09.754444 00014831 UTL  locale:                 zh_CN.UTF-8
05/16 17:39:09.754449 00014831 UTL  charset:                UTF-8
05/16 17:39:09.754454 00014831 UTL  maxShellConns:          50000
05/16 17:39:09.754470 00014831 UTL  maxConnections:         5000
05/16 17:39:09.754477 00014831 UTL  minimalLogDirGB:        1.000000(GB)
05/16 17:39:09.754485 00014831 UTL  minimalTmpDirGB:        1.000000(GB)
05/16 17:39:09.754491 00014831 UTL  minimalDataDirGB:       2.000000(GB)
05/16 17:39:09.754496 00014831 UTL  mnodeEqualVnodeNum:     4
05/16 17:39:09.754501 00014831 UTL  flowctrl:               1
05/16 17:39:09.754506 00014831 UTL  slaveQuery:             1
05/16 17:39:09.754511 00014831 UTL  adjustMaster:           1
05/16 17:39:09.754516 00014831 UTL  http:                   1
05/16 17:39:09.754521 00014831 UTL  mqtt:                   0
05/16 17:39:09.754526 00014831 UTL  monitor:                1
05/16 17:39:09.754531 00014831 UTL  stream:                 1
05/16 17:39:09.754536 00014831 UTL  topicBinaryLen:         16000
05/16 17:39:09.754541 00014831 UTL  httpEnableRecordSql:    0
05/16 17:39:09.754546 00014831 UTL  telegrafUseFieldNum:    0
05/16 17:39:09.754551 00014831 UTL  httpMaxThreads:         2
05/16 17:39:09.756100 00014831 UTL  restfulRowLimit:        10240
05/16 17:39:09.756133 00014831 UTL  httpDbNameMandatory:    0
05/16 17:39:09.756141 00014831 UTL  httpKeepAlive:          30000
05/16 17:39:09.756148 00014831 UTL  numOfLogLines:          10000000
05/16 17:39:09.756154 00014831 UTL  logKeepDays:            0
05/16 17:39:09.756235 00014831 UTL  asyncLog:               1
05/16 17:39:09.756249 00014831 UTL  debugFlag:              0
05/16 17:39:09.756256 00014831 UTL  mDebugFlag:             131
05/16 17:39:09.756263 00014831 UTL  dDebugFlag:             135
05/16 17:39:09.756269 00014831 UTL  sDebugFlag:             135
05/16 17:39:09.756275 00014831 UTL  wDebugFlag:             135
05/16 17:39:09.756280 00014831 UTL  sdbDebugFlag:           131
05/16 17:39:09.756286 00014831 UTL  rpcDebugFlag:           131
05/16 17:39:09.756293 00014831 UTL  tmrDebugFlag:           131
05/16 17:39:09.756318 00014831 UTL  cDebugFlag:             131
05/16 17:39:09.756331 00014831 UTL  jniDebugFlag:           131
05/16 17:39:09.756339 00014831 UTL  odbcDebugFlag:          131
05/16 17:39:09.756348 00014831 UTL  uDebugFlag:             131
05/16 17:39:09.756355 00014831 UTL  httpDebugFlag:          131
05/16 17:39:09.756362 00014831 UTL  mqttDebugFlag:          131
05/16 17:39:09.756368 00014831 UTL  monDebugFlag:           131
05/16 17:39:09.756376 00014831 UTL  qDebugFlag:             131
05/16 17:39:09.756383 00014831 UTL  vDebugFlag:             135
05/16 17:39:09.756389 00014831 UTL  tsdbDebugFlag:          131
05/16 17:39:09.756396 00014831 UTL  cqDebugFlag:            131
05/16 17:39:09.756403 00014831 UTL  enableRecordSql:        0
05/16 17:39:09.756419 00014831 UTL  enableCoreFile:         0
05/16 17:39:09.756427 00014831 UTL  gitinfo:                84e1ed5dc6f9fdb457d0acad78a00e7b58a72361
05/16 17:39:09.756435 00014831 UTL  gitinfoOfInternal:      NULL
05/16 17:39:09.756442 00014831 UTL  buildinfo:              Built at 2022-05-15 02:46
05/16 17:39:09.756450 00014831 UTL  version:                2.4.0.20
05/16 17:39:09.756468 00014831 UTL  maxBinaryDisplayWidth:  30
05/16 17:39:09.756476 00014831 UTL  tempDir:                /tmp/
05/16 17:39:09.756483 00014831 UTL  tsdbMetaCompactRatio:   0
05/16 17:39:09.756489 00014831 UTL  deadLockKillQuery:      1
05/16 17:39:09.756497 00014831 UTL  clientMerge:            0
05/16 17:39:09.756504 00014831 UTL  defaultJSONStrType:     nchar
05/16 17:39:09.756509 00014831 UTL  smlChildTableName:
05/16 17:39:09.756514 00014831 UTL  smlTagNullName:         _tag_null
05/16 17:39:09.756520 00014831 UTL  walFlushSize:           1024(Mb)
05/16 17:39:09.756525 00014831 UTL  lossyColumns:
05/16 17:39:09.756530 00014831 UTL  fPrecision:             0.000000
05/16 17:39:09.756539 00014831 UTL  dPrecision:             0.000000
05/16 17:39:09.756544 00014831 UTL  maxRange:               500
05/16 17:39:09.756549 00014831 UTL  range:                  100
05/16 17:39:09.756560 00014831 UTL  os pageSize:            4096(KB)
05/16 17:39:09.756566 00014831 UTL  os openMax:             1024
05/16 17:39:09.756572 00014831 UTL  os streamMax:           16
05/16 17:39:09.756579 00014831 UTL  os numOfCores:          1
05/16 17:39:09.756584 00014831 UTL  os totalMemory:         5805(MB)
05/16 17:39:09.756596 00014831 UTL  os sysname:             Linux
05/16 17:39:09.756601 00014831 UTL  os nodename:            localhost.localdomain
05/16 17:39:09.756606 00014831 UTL  os release:             3.10.0-1160.el7.x86_64
05/16 17:39:09.756610 00014831 UTL  os version:             #1 SMP Mon Oct 19 16:18:59 UTC 2020
05/16 17:39:09.756617 00014831 UTL  os machine:             x86_64
05/16 17:39:09.756625 00014831 UTL  dataDir: /var/lib/taos
05/16 17:39:09.756633 00014831 UTL ==================================
05/16 17:39:09.756641 00014831 DND step:dnode-globalcfg is initialized
05/16 17:39:09.756719 00014831 TFS disk /var/lib/taos is mounted to tier level 0 id 0
05/16 17:39:09.756842 00014831 DND ERROR failed to lock file:/var/lib/taos/dnode/.running ret:-1[Resource temporarily unavailable], database may be running, quit
[root@localhost opt]# taos

 

Welcome to the TDengine shell from Linux, Client Version:2.4.0.20
Copyright (c) 2022 by TAOS Data, Inc. All rights reserved.

taos> show databases;
              name              |      created_time       |   ntables   |   vgroups   | replica | quorum |  days  |           keep           |  cache(MB)  |   blocks    |   minrows   |   maxrows   | wallevel |    fsync    | comp | cachelast | precision | update |   status   |
====================================================================================================================================================================================================================================================================================
 log                            | 2022-05-16 17:38:42.460 |          11 |           1 |       1 |      1 |     10 | 30                       |           1 |           3 |         100 |        4096 |        1 |        3000 |    2 |         0 | us        |      0 | ready      |
Query OK, 1 row(s) in set (0.002308s)

taos>
 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

gaojingsong

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值