[root@test ~]# wget https://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
[root@test ~]# tar -zxvf noip-duc-linux.tar.gz
[root@test ~]# cd noip-2.1.9-1/
[root@test noip-2.1.9-1]# make
[root@test noip-2.1.9-1]# make install
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Please enter the login/email string for no-ip.com xxx
Please enter the password for user 'xxx' ********
Do you wish to run something at successful update?[N] (y/N) y
Please enter the script/program name noip2
New configuration file '/tmp/no-ip2.conf' created.
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
(1)-S:查看狀態;-c:重新設定
[root@test ~]# noip2 -S
No noip2 processes active.
Configuration data from /usr/local/etc/no-ip2.conf.
Account xxx
configured for:
host xxx.no-ip.info
Executing /root/noip-2.1.9-1/noip2 upon successful update.
Updating every 30 minutes via /dev/eth0 with NAT enabled.
(2)設定開機啟動:
[root@test ~]# vim /etc/rc.d/rc.local
/usr/local/bin/noip2
沒有留言:
張貼留言