赞
踩
参考网址:https://thingsboard.io/docs/getting-started-guides/helloworld/
github地主:https://github.com/thingsboard/thingsboard
thingsboard使用了
actor模型:akka
用作服务调度:zookeeper
远程调用:gRPC,thrift
持久化:Cassandra(https://cassandra.apache.org/数据存储),datastax(数据访问)
演示环境:https://demo.thingsboard.io/login
服务端安装(rpm安装):参考文档https://thingsboard.io/docs/user-guide/install/linux/(centos7)
1:thingsboard-1.3.rpm。下载地址https://github.com/thingsboard/thingsboard/releases/download/v1.3/thingsboard-1.3.rpm
2:sudo rpm -Uvh thingsboard-1.3.rpm,报错:java-1.8.0 is needed by thingsboard-0:1.3.0-1.noarch。猜测跟jdk的某些配置有关
sudo alternatives --config java
sudo alternatives --install /usr/bin/java java /usr/jdk1.8.0_60/bin/java 1,错误继续.删除配置
sudo alternatives --remove java /usr/jdk1.8.0_60/bin/java
下载rpm版的jdk安装文件(jdk-8u144-linux-x64.rpm)。
sudo rpm -Uvh jdk-8u144-linux-x64.rpm.sudo rpm -Uvh thingsboard-1.3.rpm执行成功
使用postgres数据库
# Install packages
sudo yum install postgresql-server postgresql-contrib
# Initialize your PostgreSQL DB
sudo postgresql-setup initdb
sudo systemctl start postgresql
# Optional: Configure PostgreSQL to start on boot
sudo systemctl enable postgresql
修改/var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
修改pg_hba.conf
host all all x.x.x.x/32 md5。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。