第一種:界面方式安裝和配置DDNSTO服務(wù)
1楞泼、SSH登錄OpenWRT的web管理后臺(tái)茫打,登錄后點(diǎn)擊“系統(tǒng)-軟件包”,在過(guò)濾器中輸入DDNSTO叠穆,點(diǎn)擊luci-app-ddnsto的安裝按鈕屹耐,安裝ddnsto插件尸疆,安裝成功后,主動(dòng)刷新頁(yè)面。
2寿弱、登錄DDNSTO官網(wǎng)犯眠,進(jìn)入我的設(shè)備頁(yè)面,拷貝令牌
3症革、進(jìn)入OpenWRT的web管理后臺(tái)阔逼,點(diǎn)擊“服務(wù)-DDNSTO遠(yuǎn)程控制”,在用戶Token中輸入DDNSTO官網(wǎng)拷貝的令牌地沮,然后點(diǎn)擊保存并應(yīng)用。(如果)
4羡亩、查看DDNSTO服務(wù)狀態(tài)摩疑,如果狀態(tài)顯示“正常”表示配置成功畏铆,則可以刷新DDNSTO官網(wǎng)后臺(tái)web頁(yè)面雷袋,添加:“域名映射、遠(yuǎn)程應(yīng)用”服務(wù)辞居,實(shí)現(xiàn)內(nèi)網(wǎng)穿透楷怒。(如果服務(wù)狀態(tài)失敗,則SSH登錄OpenWRT瓦灶,使用命令行安裝和綁定DDNSTO服務(wù))
第二種:命令行方式安裝和啟用DDNSTO服務(wù)
1鸠删、DDNSTO官方命令行安裝命令:
SSH登錄OpenWrt終端后,選擇一種自己熟悉的命令贼陶,即可自動(dòng)安裝ddnsto插件刃泡。
curl方式
sh -c "$(curl -sSL http://fw.koolcenter.com/binary/ddnsto/openwrt/install_ddnsto.sh)"
wget方式
sh -c "$(wget --no-check-certificate -qO- http://fw.koolcenter.com/binary/ddnsto/openwrt/install_ddnsto.sh)"
其他
cd /tmp; wget --no-check-certificate http://fw.koolcenter.com/binary/ddnsto/openwrt/install_ddnsto.sh; sh ./install_ddnsto.sh
2、安裝成功后碉怔,在/etc目錄下查找ddnsto配置文件
find /etc -name "ddnsto*"
3烘贴、修改ddnsto配置文件
vim /etc/config/ddnsto
修改并替換Token的內(nèi)容后,拷貝并替換ddnsto的配置文件撮胧,保存(英文狀態(tài)下輸入:wq)
config ddnsto
????option enabled '1'
????option token 'your DDNSTO Token'
????option feat_port '3033'
????option feat_enabled '0'
????option index '0'
4桨踪、重啟ddnsto服務(wù)
/etc/init.d/ddnsto restart
5、查看DDNSTO狀態(tài)(running表示運(yùn)行正常)
/etc/init.d/ddnsto status
通過(guò)以上兩種方式芹啥,即可進(jìn)行DDNSTO的安裝锻离,如果使用web界面配置無(wú)法生效,建議使用SSH登錄后臺(tái)修改DDNSTO的配置文件叁征,并重新啟動(dòng)DDNSTO服務(wù)即可纳账。