温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ez-ipupdate的移植

发布时间:2020-07-01 19:22:21 来源:网络 阅读:931 作者:Linux_woniu 栏目:系统运维

1.下载ez-ipupdate-3.0.10.tgz源码包

tar    xvf   ez-ipupdate-3.0.10.tgz

2.修改代码

vi  conf_file.c

添加 #include<errno.h>

vi ez-ipupdate.c 
查找“no update needed at this time” 
注释掉那几行 

else

{

fprintf(stderr, "no update needed at this time\n");

}

3.进入目录编译

[root@tooth local ez-ipupdate-3.0.10]./configure     

[root@tooth local ez-ipupdate-3.0.10] vi   Makefile

CC=mipsel-linux-gcc

CPP = mipsel-linux-gcc -E

保存退出

[root@tooth local ez-ipupdate-3.0.10]make 

4.移植并配置信息

移植ez-ipupdate和qdns.conf 到开发板

[root@tooth local]# vi qdns.conf 
service-type=qdns 
user=网站注册的账户和密码
host=申请的免费域名
interface=eth0     绑定的网口
max-interval=2073600 
cache-file=/tmp/ez-ipupdate.cache

5.启动程序

 [root@tooth local]./ez-ipupdate –c  ./qdns.conf

也可以用shell执行如下命令

ez-ipupdate -h 域名 -i  网口 -S  服务类型 -u 用户名:密码

不报错就可以。

6.测试

[root@tooth local]#ping    申请的域名
PING tooth.3322.org (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=0 time=0.070 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=0 time=0.037 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=0 time=0.036 ms


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI