經常需要使用命令列來處理東西,最近github好像又被墻了,導致沒法使用腳本初始化專案。
電腦使用ss系統代理,pac模式和全域模式都試過,set http_proxy命令也用了,還是ping不通github.com
瀏覽器可以打開。
求問如何解決?
uj5u.com熱心網友回復:
最好是用VPN直接連了uj5u.com熱心網友回復:
建立腳本檔案先新建一個名為 設定IE代理.bat 的腳本檔案然后添加如下內容(把1.1.1.1:1111修改成你自己的代理以及埠號)
@echo off
echo 開始設定IE代理上網
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "1.1.1.1:1111" /f
echo 代理設定完成按任意鍵關閉
pause>nul
再新建一個名為 取消IE代理.bat 的腳本檔案然后添加如下內容
@echo off
echo 開始清除IE代理設定
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f
echo IE代理清楚完成按任意鍵關閉
pause>nul
uj5u.com熱心網友回復:
先進入 按鍵盤win+r>輸入"inetcpl.cpl" 確定看 連接- 局域網設定有沒有配置 代理服務器沒有的先配置一下 https://jingyan.baidu.com/article/4dc408484a94c6c8d946f106.html
uj5u.com熱心網友回復:
不要用ping測驗,用curluj5u.com熱心網友回復:
ping 作業在網路層,不是TCP或UDP協議,所以不走代理。直接訪問即可.測驗可嘗試下面的命令:
$client = new-object System.Net.WebClient
$client.DownloadFile('https://www.google.com', 'D:/index.html')
cat D:/index.html
若能正常顯示網頁原始碼則代理作業正常,若出現500等錯誤代碼則不正常.
uj5u.com熱心網友回復:
Proxifier PE轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/53142.html
標籤:Windows客戶端使用
下一篇:錄制宏
