1.打開終端執行:export http_proxy=socks5://127.0.0.1:1080 這個只能在當前終端執行一次退出後就需要重新設置 如果需要開機自動設置,把上面的代碼加到~/.bash_profile里 保存到~/.bash_profile的操作步驟: 創建.bash_profil ...
1.打開終端執行:export http_proxy=socks5://127.0.0.1:1080
這個只能在當前終端執行一次退出後就需要重新設置
如果需要開機自動設置,把上面的代碼加到~/.bash_profile里
保存到~/.bash_profile的操作步驟:
創建.bash_profile
1.啟動終端
2.進入當前用戶的home目錄
cd ~ 或者 cd /users/YourMacUserName
3.輸入touch .bash_profile
查看和編輯.bash_profile文件
1.終端輸入open -e .bash_profile
2.編輯
3.關閉保存
最後更新配置的環境變數
輸入:source .bash_profile
檢驗終端是否使用代理FQ:
使用curl命令監測是否返回數據:curl https://www.google.com