一般公司內部部署推薦算法的雲服務器不可以連接到外網,需要在內網上運行和安裝運行環境與依賴包,此時需要使用前置代理,具體的使用方法如下:
1、前置代理服務器IP及其端口號:
(1)IP:10.99.202.82
(2)端口號:3128
2、最常見命令使用前置代理:
(1)wget使用前置代理的具體方法:
① https: wget -e "https_proxy=https://10.99.202.82:3128" https://cmake.org/files/v3.14/cmake-3.14.5.tar.gz --no-check-certificate
② http: wget -e "http_proxy=http://10.99.202.82:3128" http://cdn.npm.taobao.org/dist/python/3.6.5/Python-3.6.5.tgz
(2)pip安裝相關依賴包使用方法
pip --proxy="http://root:NoywkI21Sx0@10.99.202.82:3128" install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple