如何在Linux上安装无IP客户端

noip2 is a dynamic update client for No-IP to keep your current IP address synchronized with your No-IP domain, no matter whether the IP is dynamically requested via DHCP or static assigned. Furthermore, with the domain name, we can host site using a “static” domain whose CNAME points to the No-IP domain.

noip2是No-IP的动态更新客户端,无论您是通过DHCP动态请求IP还是通过静态分配IP,它都能使您当前的IP地址与您的No-IP域保持同步。 此外,使用域名,我们可以使用“ CNAME”指向No-IP域的“静态”域托管站点。

noip2 is a open source package on Linux. Let’s see how to set up and configure it. This tutorial uses Fedora as the example.

noip2是Linux上的一个开源软件包。 让我们看看如何设置和配置它。 本教程以Fedora为例。

Install the package

安装套件

# yum install noip

Configure it for the first time

首次配置

# noip2 -C

It will asks for the account/password information and asks for the domains to sync, just select and input the appropriate information here.

它将要求提供帐户/密码信息,并要求域进行同步,只需在此处选择并输入适当的信息即可。

Configure noip to run automatically as a service

将noip配置为自动作为服务运行

# chkconfig noip on

Then you can start it

那你就可以开始了

# service noip start

You can configure it to run as normal users if the IP is get via NetworkManager after user logging in.

如果用户登录后通过NetworkManager获得IP,则可以将其配置为以普通用户身份运行。

After the configuration, try to ping your No-IP domain and it should point to your public IP now.

配置完成后,尝试对您的No-IP域执行ping操作,它现在应指向您的公共IP。

To make noip2 service automatically update with your latest IP, add a crontab entry for root:

要使noip2服务自动使用您的最新IP更新,请为root添加一个crontab条目:

*/30 * * * * /sbin/service noip restart

The noip2 service will be restarted every 30 minutes. When the service is restarted, it will check your latest IP address and update the DNS record with no-ip.com .

noip2服务将每30分钟重新启动一次。 重新启动服务后,它将检查您的最新IP地址并使用no-ip.com更新DNS记录。

翻译自: https://www.systutorials.com/how-to-install-noip2-on-linux/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值