debain安裝node-red , mosquitto 以及node-red增加登入面板
apt-get install vim
apt-get install curl
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
npm install -g node-red
npm install -g node-red-dashboard
apt-get install mosquitto
apt-get install firewalld
systemctl enable firewalld
firewall-cmd --permanent --zone=public --add-port=1880/tcp
firewall-cmd --permanent --zone=public --add-port=1883/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --reload
systemctl enable mosquitto
systemctl restart mosquitto
npm install -g node-red-admin
node-red-admin hash-pw
你會得到一串HASH
vim setting.js
找到 Securing Node-RED的地方把註解拿掉
把HASH填上去
儲存後離開
留言
張貼留言