IoTDB 入门教程 基础篇③——基于Linux系统快速安装启动和上手

一、前文

IoTDB入门教程——导读

二、下载

下载二进制可运行程序:https://dlcdn.apache.org/iotdb/1.3.1/apache-iotdb-1.3.1-all-bin.zip

历史版本下载:https://archive.apache.org/dist/iotdb/

在这里插入图片描述

三、解压

压缩包下载后,解压后即可看到

在这里插入图片描述

  • conf:配置文件目录
  • lib:依赖包目录
  • sbin:启动和停止脚本目录
  • tools:系统工具目录

四、上传

将解压后的文件通过Xshell/Xftp直接上传到Linux服务器

在这里插入图片描述

五、启动

  • apache-iotdb-1.3.1-all-bin目录下面执行命令

bash sbin/start-standalone.sh

[root@iZ2ze30dygwd6yh7gu6lskZ apache-iotdb-1.3.1-all-bin]# bash sbin/start-standalone.sh
Execute start-standalone.sh finished, you can see more details in the logs of confignode and datanode
  • 查询端口是否正常开启,默认6667端口和10710端口。

netstat -nplt

[root@iZ2ze30dygwd6yh7gu6lskZ apache-iotdb-1.3.1-all-bin]# netstat -nplt
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:22              0.0.0.0:*               LISTEN      1402/sshd           
tcp6       0      0 :::3306                 :::*                    LISTEN      1298/mysqld         
tcp6       0      0 127.0.0.1:6667          :::*                    LISTEN      1837/java        
tcp6       0      0 :::80                   :::*                    LISTEN      30199/nginx: worker 
tcp6       0      0 127.0.0.1:10740         :::*                    LISTEN      1837/java           
tcp6       0      0 127.0.0.1:10710         :::*                    LISTEN      1727/java       
tcp6       0      0 127.0.0.1:10760         :::*                    LISTEN      1837/java         

在这里插入图片描述

六、执行

  • 连接数据库,默认账号:root,默认密码:root。

bash sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root

[root@iZ2ze30dygwd6yh7gu6lskZ apache-iotdb-1.3.1-all-bin]# bash sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root
---------------------
Starting IoTDB Cli
---------------------
 _____       _________  ______   ______    
|_   _|     |  _   _  ||_   _ `.|_   _ \   
  | |   .--.|_/ | | \_|  | | `. \ | |_) |  
  | | / .'`\ \  | |      | |  | | |  __'.  
 _| |_| \__. | _| |_    _| |_.' /_| |__) | 
|_____|'.__.' |_____|  |______.'|_______/  version 1.3.1 (Build: 214695d)
                                           

Successfully login at 127.0.0.1:6667
IoTDB> SHOW DATABASES
+--------+---+-----------------------+---------------------+---------------------+
|Database|TTL|SchemaReplicationFactor|DataReplicationFactor|TimePartitionInterval|
+--------+---+-----------------------+---------------------+---------------------+
+--------+---+-----------------------+---------------------+---------------------+
Empty set.
It costs 0.418s
IoTDB> exit

在这里插入图片描述

七、停止

bash sbin/stop-standalone.sh

[root@iZ2ze30dygwd6yh7gu6lskZ apache-iotdb-1.3.1-all-bin]# bash sbin/stop-standalone.sh
Check whether the internal_port is used..., port is 10710
Stop ConfigNode, PID: 1727
Check whether the rpc_port is used..., port is 6667
Stop DataNode, PID: 1837

在这里插入图片描述

八、参考

快速上手 | IoTDB Website

觉得好,就一键三连呗(点赞+收藏+关注)

  • 10
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

小康师兄

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

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

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

打赏作者

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

抵扣说明:

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

余额充值