系统要求Ubuntu 22以上,内存16GB
git clone https://github.com/thingsboard/thingsboard/
cd thingsboard/docker
./docker-install-tb.sh #貌似安装了PostgreSQL数据库
./docker-start-services.sh #安装并启动了很多个dockers,如下
docker_redis_1 is up-to-date
Creating docker_tb-web-ui2_1 ...
Creating docker_tb-web-ui2_1 ... done
Creating docker_tb-web-ui1_1 ... done
Creating docker_zookeeper_1 ... done
Creating docker_kafka_1 ... done
Creating docker_tb-js-executor_1 ... done
Creating docker_tb-js-executor_2 ... done
Creating docker_tb-js-executor_3 ... done
Creating docker_tb-js-executor_4 ... done
Creating docker_tb-js-executor_5 ... done
Creating docker_tb-js-executor_6 ... done
Creating docker_tb-js-executor_7 ... done
Creating docker_tb-js-executor_8 ... done
Creating docker_tb-js-executor_9 ... done
Creating docker_tb-js-executor_10 ... done
Creating docker_tb-rule-engine2_1 ... done
Creating docker_tb-rule-engine1_1 ... done
Creating docker_tb-core1_1 ... done
Creating docker_tb-core2_1 ... done
Creating docker_tb-http-transport2_1 ... done
Creating docker_tb-coap-transport_1 ... done
Creating docker_tb-lwm2m-transport_1 ... done
Creating docker_tb-vc-executor1_1 ... done
Creating docker_tb-http-transport1_1 ... done
Creating docker_tb-vc-executor2_1 ... done
Creating docker_tb-mqtt-transport2_1 ... done
Creating docker_tb-snmp-transport_1 ... done
Creating docker_tb-mqtt-transport1_1 ... done
Creating haproxy-certbot ... done
系统管理员: sysadmin@thingsboard.org / sysadmin
登录后
创建 租户 tenant@thingsboard.org
创建租户管理员 tenantadmin@thingsboard.org
用 tenantadmin@thingsboard.org 登录
添加设备
测试
curl -v -X POST http://192.168.1.80:/api/v1/z3wpkvkyyv0wbmumdyqc/telemetry --header Content-Type:application/json --data "{temperature:25}"