Linux(CentOS and Ubuntu)安装Shadowsocks服务端server教程

文章目录

安装 Shadowsocks

Ubuntu

apt-get install python-pip
pip install shadowsocks

CentOS

yum install python-setuptools && easy_install pip
pip install shadowsocks

配置

创建配置文件: /etc/shadowsocks.json

内容如下:

{
    "server":"1.2.3.4", // 服务器IP
    "server_port":8888, // 对外提供服务的端口
    "local_port":1080,
    "password":"your password",
    "timeout":600,
    "method":"aes-256-cfb"
}

如果需要分配多个帐号,配置如下:

{
    "server":"1.2.3.4",
    "port_password":{
        "8888":"password1",
        "8889":"password2",
        "8890":"password3",
        "8891":"password4"
    },
    "timeout":600,
    "method":"aes-256-cfb"
}

启动 Shadowsocks

前台启动

ssserver -c /etc/shadowsocks.json

后台运行

ssserver -c /etc/shadowsocks.json -d start   # 启动
ssserver -c /etc/shadowsocks.json -d stop    # 停止
原文链接:,转发请注明来源!

发表评论

要发表评论,您必须先登录