- CentOS7
- 服务器配置
/etc/ssh/sshd_config
AllowTcpForwarding yes X11Forwarding yes
- 服务器安装
xorg-x11-xauth
yum install -y xorg-x11-xauth
- 服务器配置
-
本地修改文件
/etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
- 登录
ssh -X root@ip
/etc/ssh/sshd_config
AllowTcpForwarding yes
X11Forwarding yes
xorg-x11-xauth
yum install -y xorg-x11-xauth
本地修改文件 /etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
ssh -X root@ip
Set-ExecutionPolicy RemoteSigned
npm i -g --registry=http://registry.npm.taobao.org npm tbify
tnpm install -g --unsafe-perm node-red
# 运行node-red
node-red
cd .node-red
tnpm i --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-modbus node-red-contrib-uibuilder
替换
<user>
为您的实际用户名
tnpm i -g pm2
tnpm i -g pm2-windows-startup
pm2-startup install
pm2 start C:\Users\<user>\AppData\Roaming\npm\node_modules\node-red\red.js
pm2 save
pm2 ls
卸载
pm2-startup uninstall