CentOS 7安装shadowsock(一键安装脚本)

开始安装一键shadowsock脚本:

命令1:(可双击选中整条命令)wget –no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh

命令2:chmod +x shadowsocks-libev.sh

命令3:./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log

执行命令3后,会提示输入如下参数:

 1、连接密码
 2、连接端口号(程序随机分配一个端口号,可自定义)
 3、加密方法(建议选择第7个,aes-256-cfb)
 改密码:
 Please enter password for shadowsocks-libev:
 (Default password: teddysun.com):bossfang
 
 password = bossfang
 改端口:
 Please enter a port for shadowsocks-libev [1-65535]
 (Default port: 13658):14476
 
 port = 14476
 改加密方法:
 Please select stream cipher for shadowsocks-libev:
 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
 回车开始安装,等待3-5分钟即可安装完成.

安装完成后,有如下安装参数:

 Congratulations, Shadowsocks-libev server install completed!
 Your Server IP        :  8.19.136.134 
 Your Server Port      :  14476 
 Your Password         :  bossfang 
 Your Encryption Method:  aes-256-cfb

检查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
 安装完成后,即可使用客户端开始连接。
资源分享 本站提供不断更新优质资源,敬请收藏关注
玄武新动力 » CentOS 7安装shadowsock(一键安装脚本)

提供最优质的资源集合

立即查看 了解详情