N1 Armbian 安装 Domoticz


前言

N1 中安装 Domoticz 的方法与这篇类似,MQTT 服务器改用 mosquitto,更轻量级。

步骤

安装 Domoticz,只选择 HTTP 8080 端口

curl -sSL install.domoticz.com | sudo bash

安装完成后查看 Domoticz 状态

systemctl status domoticz.service

显示 libusb-0.1.so.4: cannot open shared object file: No such file or directory,安装 libusb-0.1

apt-get install libusb-0.1-4
systemctl restart domoticz.service
systemctl status domoticz.service

显示 libssl.so.1.0.0: cannot open shared object file: No such file or directory,手动安装

wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_arm64.deb
dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_arm64.deb
systemctl restart domoticz.service
systemctl status domoticz.service

无问题后在浏览器打开 N1 IP:8080,可看到 Domoticz 启动成功
安装 mosquitto

apt-get install mosquitto

添加用户名和密码验证的步骤,首先创建一个文件 user,添加内容,冒号前后分别为用户名和密码

admin:admin

然后加密这个文件并移动到 mosquitto 目录

mosquitto_passwd -U user
mv user /etc/mosquitto/

修改 /etc/mosquitto/mosquitto.conf,添加内容

allow_anonymous false
password_file /etc/mosquitto/user
user root

重启 mosquitto
在 Domoticz 中对接 mosquitto 的方法与开头的链接相同,不在此赘述

后记

在 N1 中配置好这些之后,就可以把前几篇折腾的内容迁移到 N1 上了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM