vps交流

how to use realm


本帖最后由 xiaomifan 于 2022-2-11 13:10 编辑

https://github.com/zhboner/realm

[Unit]
Description=realm
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
DynamicUser=true
ExecStart=/usr/bin/realm -l x.x.x.x:port -r x.x.x.x:port

[Install]
WantedBy=multi-user.target
—-
保存以上内容为 realm.service,并放到 /etc/systemd/system/ 文件夹内,然后用root权限执行以下命令:

开机启动

systemctl enable –now realm
启动/重新启动/停止

systemctl start/restart/stop realm