ddnsto穿透服务变成开机自启
迪丽瓦拉
2024-05-30 02:22:00
0

官网

DDNSTO远程控制

下载地址
https://fw.koolcenter.com/binary/ddnsto/linux/

运行命令

ddnsto -u **** 

创建service,并让systemctl 托管

nano /etc/systemd/system/ddnsto.service

输入如下,其中**** 是token,需要自行获取

[Unit]
# 服务名称,可自定义
Description = ddnsto client
After = network.target syslog.target
Wants = network.target[Service]
Type = simple
# 启动frps的命令
ExecStart = /usr/local/bin/ddnsto -u ****[Install]
WantedBy = multi-user.target

退出保存

# 启动ddnsto
systemctl start ddnsto
# 停止ddnsto
systemctl stop ddnsto
# 重启ddnsto
systemctl restart ddnsto
# 查看ddnsto状态
systemctl status ddnsto
开机自启
systemctl enable ddnsto.service
关闭自启
systemctl disable ddnsto.service

相关内容