參考網址:noip
ubuntu 16.04無法用apt install的方式取得noip2
官網提供安裝的方法
- cd /usr/local/src/
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xf noip-duc-linux.tar.gz
- cd noip-2.1.9-1/
- make install
noip命令
USAGE: noip2 [ -C [ -F][ -Y][ -L hosts_groups][ -U #min]
[ -u username][ -p password][ -x progname]]
[ -c file][ -d][ -D pid][ -i addr][ -S][ -M][ -h]
Version Linux-2.1.7
Options: -C create configuration data
-F force NAT off
-Y select all hosts/groups
-L hosts_groups select supplied hosts/groups
-U minutes set update interval
-u username use supplied username
-p password use supplied password
-x executable use supplied executable
-c config_file use alternate data path
-d increase debug verbosity
-D processID toggle debug flag for PID
-i IPaddress use supplied address
-I interface use supplied interface
-S show configuration data
-M permit multiple instances
-K processID terminate instance PID
-z activate shm dump code
-h help (this text)
重新設定的話輸入
$ noip2 –C
已經有設定資料的話先刪除 noip porcess
$ noip2 –K processID
顯示現在電腦設定
$ noip2 –S
設定檔放在
/usr/local/etc/no-ip2.conf.
但已經過編碼
root@FH-ST:~# noip2 -S
1 noip2 process active.
Process 24342, started as noip2, (version 2.1.9)
Using configuration from /var/lib/noip2/noip2.conf
Last IP Address set 114.39.182.239
Account ——–@gmail.com
configured for:
host fhst.ddns.net
Updating every 30 minutes via /dev/eth0 with NAT enabled.
將/usr/local/bin/noip2放入/etc/rc.local