RustDesk服务器

一、安装node.js

python 复制代码
# cd /usr/local
# wget https://registry.npmmirror.com/-/binary/node/v16.18.1/node-v16.18.1-linux-x64.tar.gz
# tar -zxvf node-v16.18.1-linux-x64.tar.gz -C ./node-v16.18.1
# cd cd node-v16.18.1
# cd node-v16.18.1-linux-x64/
# mv * ../

二、配置环境变量

python 复制代码
# sudo vi /etc/profile
# 添加以下内容并保存
export NODE_HOME=/usr/local/node-v16.18.1
export PATH=$PATH:$NODE_HOME/bin

验证配置

python 复制代码
# source /etc/profile
# node -v
v16.18.1
# npm -v
8.19.2

三、设置仓库地址

python 复制代码
# npm config set registry "https://registry.npmmirror.com"
# npm config get registry
https://registry.npmmirror.com/

四、安装pm2

python 复制代码
# npm install pm2 -g
# pm2 --version

五、安装RustDesk Server

python 复制代码
# cd /usr/local
# wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.10-3/rustdesk-server-linux-amd64.zip
# unzip rustdesk-server-linux-amd64.zip
# cd amd64

六、运行并设置开机自启

python 复制代码
# pm2 start hbbs --  -k _
# pm2 start hbbr --  -k _
# pm2 save
# pm2 startup

查看运行状态

python 复制代码
# pm2 list

七、设置防火墙

python 复制代码
firewall-cmd --add-port=21115/tcp --permanent
firewall-cmd --add-port=21116/tcp --permanent
firewall-cmd --add-port=21117/tcp --permanent
firewall-cmd --add-port=21118/tcp --permanent
firewall-cmd --add-port=21119/tcp --permanent
firewall-cmd --add-port=21116/udp --permanent
firewall-cmd --reload

八、查看RustDesk key

python 复制代码
# cd /usr/local/amd64/
# cat ./id_ed25519.pub

九、下载客户端并配置

https://github.com/rustdesk/rustdesk/releases/tag/1.2.3-2

相关推荐
YuMiao10 小时前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题
服务器·网络协议
碳基沙盒1 天前
OpenClaw 多 Agent 配置实战指南
运维
Sinclair3 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
Rockbean4 天前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
蝎子莱莱爱打怪4 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
茶杯梦轩4 天前
CompletableFuture 在 项目实战 中 创建异步任务 的核心优势及使用场景
服务器·后端·面试
海天鹰5 天前
【免费】PHP主机=域名+解析+主机
服务器
DianSan_ERP5 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
呉師傅5 天前
火狐浏览器报错配置文件缺失如何解决#操作技巧#
运维·网络·windows·电脑
不是二师兄的八戒5 天前
Linux服务器挂载OSS存储的完整实践指南
linux·运维·服务器