科学上网CentOS7

作者: 会写bug的鸟 | 来源:发表于2018-05-20 00:54 被阅读76次

    需要一台外网服务器,香港亦可

    yum install epel-release    安装epel源

    yum -y install python-pip    安装py pip

    pip install --upgrade pip    更新pip

    pip install shadowsocks    安装shadowsocks


    编辑配置文件

    vim /etc/shadowsocks.json

    文件内容

    {

    "server":"0.0.0.0",

    "server_port":1111,

    "local_address": "127.0.0.1",

    "local_port":1080,

    "password":"MyPass",

    "timeout":300,

    "method":"rc4-md5"

    }

    配置启动命令

    vim /etc/systemd/system/shadowsocks.service

    [Unit]

    Description=Shadowsocks

    [Service]

    TimeoutStartSec=0

    ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json

    [Install]

    WantedBy=multi-user.target

    开机自启动

    systemctl enable shadowsocks

    systemctl start shadowsocks

    查看服务是否启动成功

    systemctl status shadowsocks -l或ps -aux | grep shadow

    相关文章

      网友评论

        本文标题:科学上网CentOS7

        本文链接:https://www.haomeiwen.com/subject/nilzdftx.html