后端设置
安装ss-libev
1 2
| sudo apt update sudo apt install shadowsocks-libev
|
对于14.04和16.04需从PPA安装
1 2
| sudo apt-get install software-properties-common -y sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
|
配置与启动
1 2 3 4 5 6
| sudo ss-local -c <config json path> start
sudo ss-local -c <config json path> stop
sudo ss-local -c <config json path> restart
|
可以加入服务自动启动或是用screen手动启动
Chrome浏览器代理设置
打开开发者模式,使用crx
文件安装SwtichyOmega
插件。
SwtichyOmega
插件地址:Github release ; 本站下载
git代理设置
1 2 3 4 5 6 7
| git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'
git config --global --unset http.proxy git config --global --unset https.proxy
|
npm代理设置方式
设置代理
1 2
| npm config set proxy socks5://127.0.0.1:1080 npm config set https-proxy socks5://127.0.0.1:1080
|
删除代理
1 2
| npm config delete proxy npm config delete https-proxy
|