Skip to content

RustDesk使用

209字小于1分钟

2024-10-19

自管理服务器搭建

  1. 下载

  2. systemd

    官方推荐使用PM2,但我喜欢用systemd

    将文件解压到~中,即 /root/amd64 中,现在创建3个文件

    • /etc/systemd/system/hbbr.service
    • /etc/systemd/system/hbbs.service
    • /opt/rustdesk/env
    hbbs.service
    [Unit]
    Description=hbbs Service
    After=network.target
    
    [Service]
    ExecStart=/root/amd64/hbbs -r <公网ip>
    Restart=always
    User=root
    WorkingDirectory=/root/amd64
    
    [Install]
    WantedBy=multi-user.target
    systemctl daemon-reload
    systemctl enable hbbs
    systemctl enable hbbr
    systemctl restart hbbs
    systemctl restart hbbr