1. 程式人生 > >使用代理方式整理

使用代理方式整理

假設代理的域名是xxx.xxxx.xxxx.net 埠是8080

1、pip使用代理

pip --proxy=xxx.xxxx.xxxx.net:8080 install pygame

2、wget使用代理

wget https://dl.minio.io/server/minio/release/linux-amd64/minio -e use_proxy=yes -e https_proxy=xxx.xxxx.xxxx.net:8080

3、git使用代理

git clone ttps://github.com/openstf/minicap.git -c http.proxy=xxx.xxxx.xxxx.net:8080

4、ubuntu設定

export http_proxy=xxx.xxxx.xxxx.net:8080
注:若需永久設定,則將上述存至/etc/profile檔案即可

5、瀏覽器使用代理

開啟設定——高階——系統——開啟代理設定——>
使用代理方式整理
即可進行設定