edgemax ER-X基礎知識
登錄信息
默認密碼ubnt:ubnt
默認登錄界面
eth0 https://192.168.1.1
console端口速率:115200(ER-X沒有console端口)
登錄到root帳號
sudo su
sudo -i
出廠化
通電時 reset按10秒辨绊,直到eth2端口右側的燈閃狠持,會自動重啟
關電按下reset侨艾,再插上電源容握,直到eth2端口右側的燈閃
增加硬盤可用空間
(系統(tǒng)升級時硬盤容量不夠)
delete system image
sudo apt-get autoclean
sudo du -hcd 2 / | more
sudo rm -R /var/lib/apt/lists
sudo rm -R /var/cache/apt/archives
/root.dev/w/應該是當前運行的系統(tǒng)统翩,不能刪除
/root.dev/w.o/是老的系統(tǒng),自己添加的程序和配置會被移動到這里,容量不夠時可以刪除
/config這個目錄備份配置的時候會被一起備份,并且系統(tǒng)升級也不會刪除
自己的配置文件建議放到這里
添加apt-get源
edos版本1.6以后是Debian 7(Wheezy)洋幻,之前是Debian 6(Squeeze)
https://help.ubnt.com/hc/en-us/articles/205202560-EdgeMAX-Add-other-Debian-packages-to-EdgeOS
configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy
set system package repository wheezy url http://http.us.debian.org/debian
set system package repository wheezy-security components main
set system package repository wheezy-security distribution wheezy/updates
set system package repository wheezy-security url http://security.debian.org
commit
安裝supervisor
pip在Python 2.7.9以后,Python 3.4以后自帶
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install supervisor
echo_supervisord_conf > /etc/supervisord.conf
/etc/supervisord.conf
supervisord -c /etc/supervisord.conf
在/ect/rc.local 中 exit 0 之前添加
supervisord -c /etc/supervisord.conf
系統(tǒng)啟動時自動運行
不過supervisor比較占內存