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

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

相关推荐
鳄鱼皮坡12 分钟前
仿muduo库One Thread One Loop式主从Reactor模型实现高并发服务器
运维·服务器
即将头秃的程序媛24 分钟前
centos 7.9安装tomcat,并实现开机自启
linux·运维·centos
fangeqin33 分钟前
ubuntu源码安装python3.13遇到Could not build the ssl module!解决方法
linux·python·ubuntu·openssl
小Mie不吃饭1 小时前
FastAPI 小白教程:从入门级到实战(源码教程)
运维·服务器
fo安方2 小时前
运维的利器–监控–zabbix–第三步:配置zabbix–中间件–Tomcat–步骤+验证
运维·中间件·zabbix
爱奥尼欧2 小时前
【Linux 系统】基础IO——Linux中对文件的理解
linux·服务器·microsoft
时序数据说2 小时前
为什么时序数据库IoTDB选择Java作为开发语言
java·大数据·开发语言·数据库·物联网·时序数据库·iotdb
超喜欢下雨天2 小时前
服务器安装 ros2时遇到底层库依赖冲突的问题
linux·运维·服务器·ros2
搬码临时工2 小时前
小企业如何搭建本地私有云服务器,并设置内部网络地址提供互联网访问
运维·服务器
tan77º3 小时前
【Linux网络编程】网络基础
linux·服务器·网络