标签 - aliyun

ddns aliyun raspberry    2020-10-25 18:58:02    27    0    0

一、先安装

  1. pip3 install aliyunsdkcore
  2. pip3 install aliyun-python-sdk-alidns

二、下载

  1. https://github.com/mgsky1/DDNS

三、修改config.json

  1. {
  2. "AccessKeyId": "Your_AccessKeyId",
  3. "AccessKeySecret": "Your_AccessKeySecret",
  4. "First-level-domain": "Your_First-level-domain", ## 13ua.com
  5. "Second-level-domain": "Your_Second-level-domain" ## @
  6. }

四、开机启动

  1. sudo crontab -u root -e
  2. #vim
  3. */1 * * * * python3 /path/DDNS.py
  4. sudo reboot

五、crontab参数

其它

启动服务: systemctl start crond.service

停止服务:systemctl stop crond.service

重启服务:systemctl restart crond.service