查看: 2366|回复: 2
收起左侧

树莓派配置动态域名

2014-4-11 10:44:11 | 显示全部楼层 |阅读模式
raspberrypi 花生壳动态域名配置方法
1、保证raspberrypi可以上公网。
  
pi@raspberrypi:~$ ping www.sohu.com.cn
   PING gd.a.sohu.com (123.125.116.19) 56(84) bytes of data.
   64 bytes from 123.125.116.19: icmp_req=1 ttl=58 time=14.0 ms
   64 bytes from 123.125.116.19: icmp_req=2 ttl=58 time=15.0 ms
2、更新软件源
    sudo apt-get update
3、安装必要的开发包
   sudo apt-get install gcc build-essential autoconf automake

2、在PC上下载linux版本的动态域名解析服务软件
   登录到花生壳官网,www.oray.com.cn
   下载linux版本的软件,软件名称:phddns-2.0.5.19225.tar.gz,大小为104760Bytes
3、通过SSH或ftp软件将phddns-2.0.5.19225.tar.gz上传到 raspberrypi的/home/pi目录下
4、解压缩
   
    pi@raspberrypi:~$ tar -zxvf phddns-2.0.5.19225.tar.gz
phddns-2.0.5.19225/
phddns-2.0.5.19225/Makefile.in...
5、

[root@localhost ~]# cd phddns-2.0.2.16556
[root@localhost phddns-2.0.2.16556]# aclocal
[root@localhost phddns-2.0.2.16556]# autoconf
[root@localhost phddns-2.0.2.16556]# automake
[root@localhost phddns-2.0.2.16556]# ./configure
[root@localhost phddns-2.0.2.16556]# make
[root@localhost phddns-2.0.2.16556]# cd src
-rwxr-xr-x 1 pi pi 39023  4月 11 01:49 phddns
[root@localhost src]# ls -l phddns
6、执行编译好的程序并配置(默认使用/etc/phlinux.conf,如果不存在这个文件则自动进入交互配置)
./phddns
7 通过PC上的ssh就可访问动态域名了。

回复

使用道具 举报

2014-4-11 12:38:48 | 显示全部楼层
赞一个。
回复 支持 反对

使用道具 举报

2014-4-12 09:49:23 | 显示全部楼层
不错的,动态域名解析
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热点推荐

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部