从github下载: https://github.com/NewFuture/DDNS
步骤前往AlibabaCloud (阿里巴巴云)控制台添加accesskey配置: https://help.a liyun.com/document _ detail/28637.html
将文件上载到服务器
更改文件的执行权限
$ chmod 777 create-task.sh $ chmod 777 ddns首次运行
执行$./ddns-cconfig.JSON ddns.cz Biao.com (a )==****** [via DIRECT]命令创建计划任务
$ bash create-task.sh [确定] reloadingconfigurationfilesforperiodiccommandscheduler 3360 cron .配置config.json的配置,ipv4设置解析
{ ' $ schema ' : ' https://ddns.new future.cc/schema/v 2.8.JSON ',' debug': false,' dns': 'alidns,}
#!/usr/bin/envbashrun _ dir=' $ (CD ' $ (dirname ' $ { bash _ source [0] ) ) pwd ); cmd='' $ run _ dir/ddns'-c' $ run _ dir/config.JSON' $ run _ dir/run.log _ '; echo ' */5 * * * * root $ cmd '/etc/cron.d/ddns; /etc/init.d/cron reload;