查看你的節點的代理端口
下面配置以我的代理爲準配置:
- 運行命令 vim ~/.bashrc , 將以下內容導入:(如果沒有bashrc文件可以自己創建一個出來)
export http_proxy="http://localhost:port" #這裏的port可以自己去本機網絡代理處查看
export https_proxy="http://localhost:port"
- 繼續使用命令vim ~/.bash_profile,導入以下內容:(相同的沒有bash_profile文件可以自行創建)
source ~/.bashrc
source ~/.bash_profile
- 測試
使用ping 谷歌或者curl谷歌的方式測試查看是否成功。