Zack

Centos安装SS
centos搭建Shadowsocks 一、安装Python Pip的软件包管理 curl https://bo...
扫描右侧二维码阅读全文
02
2019/11

Centos安装SS

centos搭建Shadowsocks

shadowsocks.jpg

一、安装Python Pip的软件包管理

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py 

二、安装服务端软件shadowsocks

pip install shadowsocks

出现如下Successfully信息代表安装成功

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

Looking in indexes: http://sg.mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting shadowsocks
  Downloading http://sg.mirrors.cloud.aliyuncs.com/pypi/packages/02/1e/e3a5135255d06813aca6631da31768d44f63692480af3a1621818008eb4a/shadowsocks-2.8.2.tar.gz

Building wheels for collected packages: shadowsocks
  Building wheel for shadowsocks (setup.py) … done
  Stored in directory: /root/.cache/pip/wheels/0d/95/cd/a4de9b2d901c5fd50f0f83eca33518d6022390db1c8d3515b9
Successfully built shadowsocks
Installing collected packages: shadowsocks

三、配置服务端shadowsocks

创建配置文件shadowsocks.json

vi /etc/shadowsocks.json

在上面文件插入

{
    "server":"0.0.0.0",
    "server_port":4431, 
    "local_port":1080,
    "password":"密码",
    "timeout":600,
    "method":"aes-256-cfb"
}

server_post的4431更换为你的端口,password的密码自行设置

多端口密码配置如下

{
    "server":"0.0.0.0",
    "local_port":1080,
    "port_password": {
      "端口1": "密码1",
      "端口2": "密码2"
    },
    "timeout":600,
    "method":"aes-256-cfb"
}

四、启动服务端shadowsocks

/usr/bin/ssserver -d start  -c /etc/shadowsocks.json

五、客户端设置

下载:windows 安卓 Mac

配置如下:

ss_desktop.png

地址填服务器IP,4431更换为步骤四的server_port值,密码同步骤四password值

常见问题:

不能正常使用可以尝试如下方式恢复:

1、启动或者重启ss:

/usr/bin/ssserver -d start  -c /etc/shadowsocks.json  #启动
/usr/bin/ssserver -d restart  -c /etc/shadowsocks.json  #重启
Last modification:November 19th, 2019 at 10:52 am
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment