socks服务端我搭建好了,路由器也装好了ss-local,接下来还需要设置什么啊?
我想实现的是路由器产生的wifi,只要另一台电脑连接上就可以实现代理,这样linux装软件速度快
认证高级PHP讲师
建議使用privoxy將socks轉成http,畢竟有些專案不支援socks代理,privoxy配置非常的簡單
# step1 $ sudo apt-get install privoxy # step2,末尾添加一行文件即可,如果题主用shawdosocks的话默认就是1080 $ vim etc/privoxy/config forward-socks5 / 127.0.0.1:1080 .
以後要用的時候臨時設定就行了
$ export http_proxy='http://localhost:8118'
如果使用GitHub的話git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port,即git config --global http.proxy http://localhost:8118,wget等其他指令就自己看文檔了~
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port
git config --global http.proxy http://localhost:8118
建議使用privoxy將socks轉成http,畢竟有些專案不支援socks代理,privoxy配置非常的簡單
以後要用的時候臨時設定就行了
如果使用GitHub的話
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:port
,即git config --global http.proxy http://localhost:8118
,wget等其他指令就自己看文檔了~