在樹莓派上使用no-ip動態網域名稱的方法,也適用其它Linux系統的平台

來源:互聯網
上載者:User

標籤:style   blog   http   color   使用   ar   strong   for   div   

首先,註冊一個noip的帳號

可參考這篇教程:http://www.cnblogs.com/infopi/p/3991407.html

 

建立目錄

第1行進入目前使用者的home目錄

第2行建立noip子目錄,第3行進入noip子目錄

cd ~
mkdir noip
cd noip

 

下載noip用戶端源碼、安裝

第1行下載源碼,第2行解壓源碼,第3行進入解壓後的源碼目錄

第4行編譯,第5行安裝

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gztar vzxf noip-duc-linux.tar.gzcd noip-2.1.9-1sudo makesudo make install

 

在安裝的過程中,會問以下問題

Please enter the login/email string for no-ip.com
(輸入你註冊時填的郵箱地址)

Please enter the password for user
(輸入你的密碼)

Please enter an update interval: [30]
(noip用戶端檢查你路由器外部網址變化的間隔,預設是30分鐘)
(Increments in minutes that you want no-ip client to check if your router’s external dynamic IP address has changed and updates it accordingly.)

Do you wish to run something at successful update? [N] (y/N)
(直接按斷行符號即可)

 

啟動noip用戶端,打這個命令:

/usr/local/bin/noip2

要想開機啟動,把上面這一行加入/etc/rc.local,要加在exit 0那行以前

 

兩個常用命令

sudo /usr/local/bin/noip2 -C     重新設定一次(就是問安裝過程中那幾個問題)
sudo /usr/local/bin/noip2 -S      顯示當前運行狀態、資訊

在樹莓派上使用no-ip動態網域名稱的方法,也適用其它Linux系統的平台

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.