扫码关注官方订阅号
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
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
建议使用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等其他命令就自己看文档了~