UP | HOME

配置shadowsocks多用户服务

安装服务

$ yum install m2crypto libsodium supervisor
$ pip install shadowsocks

配置服务

$ vi /etc/shadowsocks.json
    {
        "server":"0.0.0.0",
        "port_password":{
            "1234":"passwd1",
            "2345":"passwd2"
        },
        "timeout":600,
        "method":"aes-256-cfb"
    }
$ vi /etc/supervisord.d/shadowsocks.ini
    [program:shadowsocks]
    command=ssserver -c /etc/shadowsocks.json
    autostart=true
    autorestart=true
    user=root
    log_stderr=true
    logfile=/var/log/shadowsocks.log

配置supervisor自动启动服务

$ chkconfig supervisord on
$ systemctl enable supervisord.service
$ service supervisord start

Date: 2019-03-09 Sat 17:21

Author: shixiongfei

Created: 2020-09-05 Sat 14:40

Emacs 27.1 (Org mode 9.3)