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填上去
儲存後離開

留言

這個網誌中的熱門文章

centos7 架設 snort IDS (版本2.9.13)

在debian10 安裝 docker 以及 Logon Tracer