开始安装一键shadowsock脚本:
命令1:$ wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
命令2:$ chmod +x shadowsocks-all.sh
命令3:$./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
执行命令3后,会提示输入如下参数:
1.1 下载shadowsock一键脚本并赋予执行权限 Which Shadowsocks server you'd select: #选择安装的版本 1) Shadowsocks-Python 2) ShadowsocksR 3) Shadowsocks-Go 4) Shadowsocks-libev Please enter a number (Default Shadowsocks-Python):1 #默认1) Shadowsocks-Python You choose = Shadowsocks-Python 1、连接密码 2、连接端口号(程序随机分配一个端口号,可自定义) 3、加密方法(建议选择第7个,aes-256-cfb) 改密码: Please enter password for Shadowsocks-Python #shadowsock客户端使用的密码 (Default password: teddysun.com):你要设置的密码 password = 您要设置的密码 改端口: Please enter a port for Shadowsocks-Python [1-65535]#服务端监听的端口 (Default port: 13658):13625 port = 13625 改加密方法: Please select stream cipher for Shadowsocks-Python: #选择加密算法 1) aes-256-gcm 2) aes-192-gcm 3) aes-128-gcm 4) aes-256-ctr 5) aes-192-ctr 6) aes-128-ctr 7) aes-256-cfb 8) aes-192-cfb 9) aes-128-cfb 10) camellia-128-cfb 11) camellia-192-cfb 12) camellia-256-cfb 13) xchacha20-ietf-poly1305 14) chacha20-ietf-poly1305 15) chacha20-ietf 16) chacha20 17) salsa20 18) rc4-md5 Which cipher you'd select(Default: aes-256-gcm):7 cipher = aes-256-cfb Press any key to start…or press Ctrl+C to cancel #按任意键继续,Ctrl+C取消 回车开始安装,等待3-5分钟即可安装完成.
检查shadowsock是否正常启动:
$ /etc/init.d/shadowsocks status Shadowsocks-libev (pid 20819) is running…
更多相关命令:
启动shadowsock:/etc/init.d/shadowsocks start 停止shadowsock:/etc/init.d/shadowsocks stop 重启shadowsock:/etc/init.d/shadowsocks restart 查看shadowsock状态:/etc/init.d/shadowsocks status 安装完成后,即可使用客户端开始连接。
启动脚本
启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。
Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | statusShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | statusShadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | statusShadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status
各版本默认配置文件
Shadowsocks-Python 版:
/etc/shadowsocks-python/config.jsonShadowsocksR 版:
/etc/shadowsocks-r/config.jsonShadowsocks-Go 版:
/etc/shadowsocks-go/config.jsonShadowsocks-libev 版:
/etc/shadowsocks-libev/config.json
已有 1110 位网友参与,快来吐槽:
发表评论