在公司內部網路OA的環境禁止直接連線到Internet,必須透過Proxy才能上網,如果要安裝伺服器,先前寫的那些shell script都是使用wget自動去網路抓檔案回來安裝,如果能讓wget可以透過proxy去抓檔案,則原本的shell script就可以照著執行了。
要讓wget透過proxy去抓檔案在Linux下很簡單,以下是我找到的一個最方便的設定方式:
編輯 /etc/wgetrc
加上
http_proxy = http://10.160.3.88:8080/
use_proxy = on
參考資料
http://mis.ntct.edu.tw/book/368
另外因很多shell script有用到yum,也可以參考一下這篇yum的proxy設定
http://www.andowson.com/posts/list/183.page