阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

在CentOS 6.6上安装ShadowSocks服务端

130次阅读
没有评论

共计 1103 个字符,预计需要花费 3 分钟才能阅读完成。

在 CentOS 6.6 上安装 ShadowSocks 服务端

1、查看系统
[root@localhost ~]# cat /etc/issue
CentOS release 6.6 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-042stab106.6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

2、安装 ShadowSocks
# yum install python-setuptools && easy_install pip
# pip install shadowsocks

3、创建配置文件 /etc/shadowsocks.json
[root@localhost /]# touch /etc/shadowsocks.json
[root@localhost /]# vi /etc/shadowsocks.json
{
“server”:”138.128.208.158″,
“server_port”:443,
“local_address”: “127.0.0.1”,
“local_port”:1080,
“password”:”MyPass”,
“timeout”:600,
“method”:”rc4-md5″
}

备注:加密方式官方默认使用 aes-256-cfb,推荐使用 rc4-md5,因为 RC4 比 AES 速度快好几倍。
各字段说明:

    server: 服务器 IP
    server_port: 服务器端口
    local_port: 本地端端口
    password: 用来加密的密码
    timeout: 超时时间(秒)
    method: 加密方法,可选择“bf-cfb”,“aes-256-cfb”,“des-cfb”,“rc4″等

4、使用配置文件在后台运行 shadowsocks 服务
[root@localhost /]# ssserver -c /etc/shadowsocks.json -d start

备注:若无配置文件,在后台可以使用一下命令运行:

[root@localhost /]# ssserver -p 443 -k MyPass -m rc4-md5 -d start

5、停止服务
[root@localhost /]# ssserver -c /etc/shadowsocks.json -d stop

更多 CentOS 相关信息见 CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

本文永久更新链接地址 :http://www.linuxidc.com/Linux/2015-05/117290.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计1103字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中