為了方便遠端連線,所以為主機申請 No-IP 動態 DNS 服務。
1. 下載 noip x64 rpm
# wget ftp://ftp.pbone.net/mirror/atrpms.net/el7-x86_64/atrpms/stable/noip-2.1.9-8.el7.x86_64.rpm
2. 進行安裝
# rpm -ivh noip-2.1.9-8.el7.x86_64.rpm[@more@]3. 在 no-ip 網站申請並註冊
http://www.noip.com/
4. 進行設定
# /usr/bin/noip2 -C
Auto configuration for Linux client of no-ip.com.
Multiple network devices have been detected.
Please select the Internet interface from this list.
By typing the number associated with it.
0 eno16777736
1 ppp0
1 (要使用 no-ip 的網路介面)
Please enter the login/email string for no-ip.com xxxxx (在 no-ip 網站上註冊的帳號)
Please enter the password for user ‘xxxxx’ ************ (在 no-ip 網站上註冊的密碼)
Only one host [xxxxx.sytes.net] is registered to this account.
It will be used.
Please enter an update interval:[30]
Do you wish to run something at successful update?[N] (y/N) N
New configuration file ‘/etc/no-ip2.conf’ created.
5. 在 /etc/rc.d/rc.local 中加入下面一行
/usr/bin/noip2 &
# vim /etc/rc.d/rc.local
/usr/bin/noip2 &