多语言展示
当前在线:1231今日阅读:23今日分享:25

如何在Ubuntu中安装WSO2 Iot Server

本篇内容主要是介绍如何在Ubuntu系统中安装WSO2 Iot Server进行安卓设备的管理
工具/原料
1

wos2 IoT软件包

2

JDK1.8

下载并安装WSO2 IoT
1

下载并安装JDK1.8,需要设在JAVA_HOME、JRE_HOME, PATH的环境变量

2

在WSO2网站主页上下载WSO2 IoT Server软件包WSO2 IoT是完全开源的产品,基于Java 7/8开发。默认下载方式是:binary包下载你还可以选择其他类型的下载,如Docker方式

3

解压缩下载的文件压缩包1) 将wso2iot-3.3.0.zip复制到目标路径2)在目标位置中使用unzip命令解压缩wso2iot-3.3.0.zip

修改WSO2 IoT运行的IP地址
1

默认情况下,WSO2 IoT是以localhost为本地域名运行的,如果外部系统和终端需要访问远程服务器则需要修改WSO2 IoT服务器绑定的IP地址

2

通过运行 script/change-ip.sh脚步进行IP地址的修改修改IP地址时需要重新生存数字证书的

3

获取当前系统的IP地址,局域网的IP地址hxb@littleStar:~/wso2iot-3.3.0/scripts$ ifconfig可以看到IP地址为:192.168.27.85

4

运行change-ip.sh脚本修改服务的ip为本地的IP地址

5

首次运行该脚本,输入当前IP地址后回车:localhost root@littleStar:/home/hxb/wso2iot-3.3.0/scripts# ./change-ip.sh ----------------------------------------WSO2 IoT Server IP configuration tool---------------------------------------->>> Step 1: Change current IP address of the IoT serverPlease enter the IoT Core IP that you need to replace (if you are trying out IoT server for the first time this will be localhost)localhostPlease enter your current IP192.168.27.85--------------------------------------All your  + localhost +  IP's are replaced with  +192.168.27.85--------------------------------------Changing /conf/carbon.xmlsed: 无法读取 : 没有那个文件或目录sed: 无法读取 : 没有那个文件或目录Completed!!Changing /conf/app-manager.xmlsed: 无法读取 : 没有那个文件或目录Completed!!Changing /conf/identity/sso-idp-config.xmlsed: 无法读取 : 没有那个文件或目录Completed!!Changing /conf/iot-api-config.xmlsed: 无法读取 : 没有那个文件或目录Completed!!Changing /repository/deployment/server/jaggeryapps/devicemgt/app/conf/app-conf.jsonCompleted!!Changing /repository/deployment/server/jaggeryapps/devicemgt/app/conf/config.jsonCompleted!!Changing /repository/deployment/server/jaggeryapps/api-store/site/conf/site.jsonCompleted!!Changing /repository/deployment/server/jaggeryapps/portal/configs/designer.jsonCompleted!!Changing  /conf/api-manager.xmlfoundsed: 无法读取 : 没有那个文件或目录Completed!!Changing /conf/etc/webapp-publisher-config.xmlsed: 无法读取 : 没有那个文件或目录Completed!!Changing  /bin/iot-server.shCompleted!!Changing hostURL of /wso2/broker/conf/broker.xmlfoundCompleted!!Changing tokenEndpoint of /wso2/broker/conf/broker.xmlfoundCompleted!!Changing deviceMgtServerUrl of /wso2/broker/conf/broker.xmlfoundCompleted!!Changing  /wso2/analytics/bin/wso2server.shCompleted!!Changing  /wso2/analytics/repository/deployment/server/jaggeryapps/portal/configs/designer.jsonCompleted!!>>> Step 2: Change current IP address of the IoT Broker-------------------------------------------------------Changing  /wso2/analytics/bin/wso2server.shCompleted!!Changing  /bin/iot-server.shCompleted!!Changing /wso2/broker/conf/carbon.xmlsed: 无法读取 : 没有那个文件或目录sed: 无法读取 : 没有那个文件或目录Completed!!>>> Step 3: Change current IP address of the IoT Analytics-------------------------------------------------------Changing  /bin/iot-server.shCompleted!!Changing  /wso2/analytics/repository/deployment/server/jaggeryapps/portal/configs/designer.jsonCompleted!!Changing /wso2/analytics/conf/carbon.xmlsed: 无法读取 : 没有那个文件或目录sed: 无法读取 : 没有那个文件或目录Completed!!-----------------------------------------------Generating SSL certificates for the IoT Server-----------------------------------------------=======Enter Values for IoT Core SSL Certificate=======Please provide Country. Press Enter to skip.

6

输入目标IP地址后回车,如:192.168.27.85

7

输入安全证书相关参数,生存证书,在common name时需要输入服务器所在的IP地址:=======Enter Values for IoT Core SSL Certificate=======Please provide Country. Press Enter to skip.zhPlease provide State. Press Enter to skip.gdPlease provide Location. Press Enter to skip.szPlease provide Organization. Press Enter to skip.hxbPlease provide Organizational Unit. Press Enter to skip.mobilePlease provide Email Address. Press Enter to skip.hexixp@163.comPlease provide Common Name 192.168.27.85

8

运行Iot Server服务:1)进入IoT Server中的bin目录2)运行iot-server.shroot@littleStar:/home/hxb/wso2iot-3.3.0/bin# ./iot-server.sh JAVA_HOME environment variable is set to /home/hxb/jdk1.8.0_181CARBON_HOME environment variable is set to /home/hxb/wso2iot-3.3.0Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

推荐信息