哈哈哈哈哈

當前系統centos7.5 yum安裝

  • 安裝python yum install python-setuptools
  • 安裝pip
    • wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate
    • tar -xzvf pip-1.3.1.tar.gz
    • cd pip-1.3.1
    • python setup.py install
  • 安裝Sha… pip install shadowsocks
  • 按順序執行下面命令,在/etc目錄下新建文件夾“sha…”,然後在sha…文件夾下新建文件“config.json”:
    • mkdir /etc/shadowsocks
    • vi /etc/shadowsocks/config.json 內容如下:
// "server":是你Vultr服務器的ip地址
// "server_port"和"password"可以根據自己的要求設定
{
    "server":"0.0.0.0",
    "server_port":8888,
    "password":"your_password",
    "timeout":600,
    "method":"aes-256-cfb",
    "fast_open": false
}

// 如果需要同時開多個端口,config.json的內容可以設置如下:
{
    "server":"0.0.0.0",
    "port_password": {
    "8888": "your_password1",
    "8889": "your_password2"
    },
    "timeout":600,
    "method":"aes-256-cfb",
    "fast_open": false
}
  • 啓動: ssserver -c /etc/shadowsocks/config.json -d start
  • 停止: ssserver -c /etc/shadowsocks/config.json -d stop
  • 開機自啓動`
    • vi /etc/systemd/system/shadowsocks.service 內容如下
[Unit]
Description=Shadowsocks
After=network.target

[Service]
Type=forking
PIDFile=/run/shadowsocks/server.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /run/shadowsocks
ExecStartPre=/bin/chown root:root /run/shadowsocks
ExecStart=/usr/bin/ssserver --pid-file /var/run/shadowsocks/server.pid -c /etc/shadowsocks/config.json -d start
Restart=on-abort
User=root
Group=root
UMask=0027

[Install]
WantedBy=multi-user.target
  • 設置文件權限:chmod 755 /etc/systemd/system/shadowsocks.service
  • 啓動服務(兩個命令都執行一遍吧):
    • systemctl start shadowsocks
    • systemctl enable shadowsocks
  • sha…客戶端下載地址:
Windows
https://github.com/shadowsocks/shadowsocks-windows/releases

Mac OS X
https://github.com/shadowsocks/ShadowsocksX-NG/releases

linux
https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation
https://github.com/shadowsocks/shadowsocks-qt5/releases

iOS
https://itunes.apple.com/app/apple-store/id1070901416?pt=2305194&ct=shadowsocks.org&mt=8
https://github.com/shadowsocks/shadowsocks-iOS/releases

https://play.google.com/store/apps/details?id=com.github.shadowsocks
https://github.com/shadowsocks/shadowsocks-android/releases
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章