<>强安装shadowsocks 强>
1。安装shadowsocks
,,,,pip install shadowsocks
2。编写shadowsocks配置文件测试,配置文件如下:
cat 在祝辞,/etc/shadowsocks.json & lt; & lt; EOF { ,,,“服务器”:“0.0.0.0”, ,,,“server_port”: 1075年, ,,,“local_port”: 1080年, ,,,“密码”:“25 d55ad283aa400af464c76d713c07ab”, ,,,“超时”:10 ,,,“法”:“aes - 256循环流化床” } EOF
3。测试配置文件是否可用
,,,,ssserver -c /etc/shadowsocks.json
,,,
4。如果启动成功,出现1075端口即可
5。使用主管管理shadowsocks进程。安装主管
,,,,pip install 主管
,,,
6。启动主管
,,
,mkdir -p /etc/主管/conf.d/,cat 的在在/etc/主管/supervisor.conf<& lt; EOF ;supervisor config 文件 (unix_http_server) 文件=/var/运行/supervisor.sock ,,,,(从而path 用,socket 文件) chmod=0700,,,,,,,,,,,,,,,,,,,,,,,,, sockef file mode (default 0700) (supervisord) 日志文件=/var/log/主管/supervisord.log ;, (main log 文件;default 美元/supervisord.log)慢性消耗性疾病 pidfile=/var/跑步/supervisord.pid ,, (supervisord pidfile default supervisord.pid) childlogdir=/var/log/supervisor ,,,,,,,,,,,,,(‘汽车’,child log dir,, default 临时美元) ,,,below section  must remain 拷贝,config file for RPC ,,(supervisorctl/web 接口),用工作,additional interfaces may ,,added by  defining them 拷贝separate rpcinterface:部分 [rpcinterface主管): 时间=supervisor.rpcinterface_factory supervisor.rpcinterface: make_main_rpcinterface (supervisorctl) serverurl=unix:///var/跑步/supervisor.sock ;, use a unix://, URL for a unix 插座 ,,,(包括),section 还要just contain ,“文件”,设置只这 ;,setting 还要list multiple files (separated by  whitespace 或 ,,换行)只,It 还要also contain 通配符只,从而filenames ,,interpreted as  relative 用却;能够文件只Included files *不* ;,include files 自己。 (包括) files =,/etc/主管/conf.d/* . conf EOF
,,,
,,启动主管
,,,,supervisord
,,,
,,
7。,,,添加主管的shadowsocks配置文件
cat 在祝辞/etc/主管/conf.d/shadowsocks.conf & lt; & lt; EOF (项目:shadowsocks) 命令=ssserver -c /etc/shadowsocks.json , autorestart=true , redirect_stderr=true stdout_logfile=/tmp/shadowsocks.log stdout_logfile_maxbytes=300 mb stdout_logfile_backups=10 stdout_capture_maxbytes=500 mb EOF
8。重新加载主管
,,,,supervisorctl 更新
,,,
9。检查主管是否启动了shadowsocks
ubuntu@ip - 172 - 131 - 12 - 251: ~,美元sudo supervisorctl 状态 shadowsocks ,,,,,,,,,,,,,,,,,,,,,,,, RUNNING  pid 18785年,uptime 0:13:10 ubuntu@ip - 172 - 131 - 12 - 251: ~ $ 出现RUNNING 即成功
windows客户端下载地址:https://github.com/shadowsocks/shadowsocks-windows/releases/download/4.0.4/Shadowsocks-4.0.4.zip
mac客户端下载地址: