在網上查了一些資料,都不詳細,現在列出標準命令:
1。如果代理服務器需要認證
gem install rails --include-dependencies --http-proxy http://username:password@proxy:port
2。如果代理服務器不需要認證
gem install rails --include-dependencies --http-proxy http://proxy:port
希望能對大家有幫助
轉載于:https://www.cnblogs.com/donaldxu/archive/2008/02/02/1062381.html