ThingsBoard版本升级

1、thingsboard-3.8.1版本安装

ThingsBoard - 源码打包部署文档:ThingsBoard - 源码编译打包部署-CSDN博客

1、打开 thingsboard源码 选择 3.8.1 版本,进行打包编译

2、将thingsboard-3.8.1-boot.jar上传到我们的服务器

3、创建数据库thingsboard

4、初始化安装数据库
java -classpath thingsboard-3.8.1-boot.jar -Dspring.config.location=/opt/project/thingsboard-3.8.1/conf/thingsboard.yml -Dloader.main=org.thingsboard.server.ThingsboardInstallApplication -Dinstall.data_dir=/opt/project/thingsboard-3.8.1/data org.springframework.boot.loader.launch.PropertiesLauncher
2、通过 jar 包启动 thingsboard
java -classpath thingsboard-3.8.1-boot.jar -Dspring.config.location=/opt/project/thingsboard-3.8.1/conf/thingsboard.yml -Dlogging.config=/opt/project/thingsboard-3.8.1/conf/logback.xml -Dpkg.logFolder=/opt/project/thingsboard-3.8.1/logs -Dpkg.name=thingsboard org.springframework.boot.loader.launch.PropertiesLauncher

账号:sysadmin@thingsboard.org

密码:sysadmin

3、升级数据库
java -classpath thingsboard-3.9.0-boot.jar -Dspring.config.location=/opt/project/thingsboard/conf/thingsboard.yml -Dloader.main=org.thingsboard.server.ThingsboardInstallApplication -Dinstall.upgrade=true -Dinstall.upgrade.from_version=3.8.1 -Dinstall.data_dir=/opt/project/thingsboard/data -Dspring.jpa.hibernate.ddl-auto=none -Dlogging.config=/opt/project/thingsboard/conf/logback.xml  -Dpkg.logFolder=/opt/project/thingsboard/logs -Dpkg.name=thingsboard org.springframework.boot.loader.launch.PropertiesLauncher

4、启动升级后的 jar
java -classpath thingsboard-3.9.0-boot.jar -Dspring.config.location=/opt/project/thingsboard/conf/thingsboard.yml -Dlogging.config=/opt/project/thingsboard/conf/logback.xml -Dpkg.logFolder=/opt/project/thingsboard/logs -Dpkg.name=thingsboard org.springframework.boot.loader.launch.PropertiesLauncher

5、代码升级

如果都在同一个 git 下,可以

如果在官网同分支开发的话,进行合并一下即可

如果 git 地址跟官方源码不在一起,则需要拉取官方源码,进行合并即可

1、git remote add target_branch https://github.com/thingsboard/thingsboard.git   
2、git fetch target_branch
3、 git checkout -b target_branch_in_source target_branch/release-3.9
4、 切换分支到my-3.8.1自己的分支)
5、 git merge --no-ff target_branch_in_source --allow-unrelated-histories
6git commit -m "3.8.1版本升级3.9.0"
7、git push origin my-3.8.1   

【ThingsBoard - 版本升级-哔哩哔哩-如果觉得有用点下关注】 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值