差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
| 
                    tech:op:shadowsocks [2018/07/10 01:52:12] 某喵  | 
                
                    tech:op:shadowsocks [2018/07/15 18:14:31] (当前版本) 某喵  | 
            ||
|---|---|---|---|
| 行 12: | 行 12: | ||
| curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | ||
| python get-pip.py | python get-pip.py | ||
| - | wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh | + | |
| + | # wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh | ||
| wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh | wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh | ||
| + | chmod +x ovz-bbr-installer.sh  | ||
| + | ./ovz-bbr-installer.sh | ||
| + | |||
| + | # 关闭 firewalld | ||
| + | systemctl disable firewalld  | ||
| + | systemctl stop firewalld | ||
| ``` | ``` | ||
| 行 22: | 行 29: | ||
| ``` | ``` | ||
| sudo pip install shadowsocks | sudo pip install shadowsocks | ||
| - | sudo ssserver -c /etc/shadowsocks/config.json -vv | + | sudo ssserver -c /etc/shadowsocks/config.json -vv # 注意 server IP 需要写为 0.0.0.0 | 
| sudo ssserver -c /etc/shadowsocks/config.json -d start | sudo ssserver -c /etc/shadowsocks/config.json -d start | ||
| + | ``` | ||
| + | |||
| + | ## [CentOS 6] 开机自启 | ||
| + | |||
| + | ``` | ||
| + | vi /etc/rc.local | ||
| + | ``` | ||
| + | |||
| + | ``` | ||
| + | ssserver -c /etc/shadowsocks/config.json -d start | ||
| + | ``` | ||
| + | |||
| + | |||
| + | ## [CentOS 7] 开机自启 | ||
| + | |||
| + | ``` | ||
| + | vi /usr/lib/systemd/system/ss.service | ||
| + | ``` | ||
| + | |||
| + | ``` | ||
| + | [Unit] | ||
| + | Description=Shadowsocks | ||
| + | After=network.target | ||
| + | |||
| + | [Service] | ||
| + | TimeoutStartSec=0 | ||
| + | ExecStart=/usr/bin/ssserver -c /etc/shadowsocks/config.json | ||
| + | ExecReload=/bin/kill -HUP $MAINPID | ||
| + | Restart=on-failure | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | ``` | ||
| + | |||
| + | ``` | ||
| + | systemctl enable ss.service | ||
| + | systemctl start ss.service | ||
| + | systemctl status ss.service | ||
| ``` | ``` | ||