1 更换apt源
1)查看系统版本
代码语言:txt复制lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
2)编辑文件 /etc/apt/sources.list文件
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
3)编辑文件 /etc/apt/sources.list.d/raspi.list文件
deb http://mirrors.aliyun.com/archive.raspberrypi.org/debian/ buster main ui
2 安装node-red环境
1) 安装Node-Red
代码语言:txt复制bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
2)启动和Hello World
测试和输出: