03、ThingsBoard-ThingsBoard安装

这篇博客详细介绍了在Windows环境下通过编译安装ThingsBoard的步骤,包括JDK、Maven、Node、npm、yarn的安装,以及Postgres数据库的配置和使用。同时,也提到了Linux环境下使用Docker-Compose安装的准备工作和配置过程,适用于快速拉起ThingsBoard服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、Windows下编译安装

1.1、概述

很多的人反馈在Windows环境下安装thingsboard总是编译不过,其实大家的环境基本上问题都不大,因为thingsboard需要对前端进行install,然后生成node_modules文件,因为这里面需要去外网下载很多的东西,很多人的网络不好,就会导致报错,基本上都是网络导致的,目前thingsboard的jdk版本需要11了,这是前提,其它的版本只要比我文档的高基本上都没有问题,具体的安装细节,在网上搜一下一大堆

1.2、安装jdk

C:\Users\Administrator>java -version
java version "11.0.12" 2021-07-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)

1.3、安装maven(maven中的jdk一定要一样哦)

C:\Users\Administrator>mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: D:\yu
### ThingsBoard Gateway RTU Configuration and Usage #### Overview of ThingsBoard Gateway with RTU Support The ThingsBoard Gateway is designed to facilitate communication between IoT devices that use protocols such as Modbus RTU (Remote Terminal Unit) and the ThingsBoard server. This setup allows for efficient data collection from industrial equipment or sensors connected via serial interfaces. For increasing the rate at which groups of interfaces operate when using an RTU license, specific configurations are necessary[^1]. The configuration process involves setting up both hardware connections and software parameters within the ThingsBoard environment. #### Hardware Setup Requirements To connect devices supporting Modbus RTU protocol to the ThingsBoard platform through the gateway: - Ensure physical connection between the gateway device and target RTUs over RS485/RS232. - Verify correct wiring according to manufacturer specifications. #### Software Installation Steps on Gateway Device Install Python packages required by the ThingsBoard Gateway project including `pymodbus` library which handles low-level details of communicating with Modbus slaves. ```bash pip install thingsboard-gateway pymodbus ``` Configure the ThingsBoard Gateway service file (`thingsboard-gateway.conf`) located typically under `/etc/thingsboard/gateway`. Add entries corresponding to each RTU device specifying its address, baudrate, parity settings among others. Example snippet showing how one might configure multiple RTU devices in JSON format inside this configuration file: ```json { "server": { ... }, "devices": [ { "deviceName": "Temperature Sensor", "deviceType": "modbus", "extensionConfiguration": "./conf/modbus.json" } ] } ``` In addition, create a separate JSON file named `modbus.json`, where detailed attributes like register addresses used during polling can be defined per individual sensor type. #### Running the Gateway Service After completing all setups mentioned above, start the ThingsBoard Gateway daemon ensuring it runs continuously collecting telemetry from configured RTU nodes. ```bash sudo systemctl enable --now thingsboard-gateway ``` Verify operation status checking logs produced either directly accessing them or utilizing journalctl command depending upon Linux distribution specifics. #### Security Considerations When configuring access points exposed publicly ensure proper firewall rules limit exposure only allowing trusted networks while blocking unauthorized attempts targeting default ports associated with services involved here especially considering potential vulnerabilities related to older versions listed elsewhere[^2].
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

国服TB第一人

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

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

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

打赏作者

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

抵扣说明:

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

余额充值