写在前面的前面,其实我的需求就是DDNS,申请了HE.NET的账号,结果他的ddns实现方法特别简单,也特别难,因为核心就是一个http请求,设置成每5分钟执行一次,就ok,开始我是在win server 2019里面的计划任务里面设置,使用了一个脚本,让他定时执行脚本,不过,总是失败,只执行最开始的第一次,这里不在讨论。
如:
$ vim /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.