centos影梭的安裝和多使用者配置,centos影梭多使用者

來源:互聯網
上載者:User

centos影梭的安裝和多使用者配置,centos影梭多使用者

環境的作業系統為 CentOS 6。

1 進入終端

2 執行 yum -y install python-setuptools 安裝python的包管理工具

3 執行 yum -y easy_install pip 安裝python的包管理工具

接著,建立一個Shadowsocks設定檔,放在哪裡都可以

4 vi /etc/shadowsocks.json

可以配置如下:

{    "server":"your_server_ip",    "server_port":8388,                 "local_address": "127.0.0.1",    "local_port":1080,    "password":"*********",    "timeout":300,    "method":"aes-256-cfb",    "fast_open": false}

 

說明:

server:你的伺服器ip

server_port:連接埠號碼(每一個帳號都不能重複)

local_address : 本地地址,一般不變

local_port :本地連接埠,一般不變

password : 串連密碼

timeout : 相應逾時時間

method : 加密方式

fast_open : 使用TCP_FASTOPEN, 參數選項true / false,一般保持預設即可

設定好後,儲存。

5 啟動影梭服務

 

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

 

6 停止影梭服務

ssserver -c /etc/shadowsocks.json -d stop

7 問題來了,如果要配置多個使用者呢?

方法一:

{    "server":"your_server_ip",    "local_address": "127.0.0.1",    "local_port":1080,    "port_password":{   #連接埠號碼與密碼         "8989":"password0",   # 左邊是連接埠號碼,右邊是密碼         "9001":"password1",         "9002":"password2",         "9003":"password3",         "9004":"password4"    },    "timeout":300,    "method":"aes-256-cfb",    "fast_open": false}

方法二:

{     "timeout": 600,     "method": "aes-256-cfb",     "port_password":             {                  "40001": "password1",                 "40002": "password2",                  "40003": "password3"             },       "_comment":             {                     "40001": "xiaoming",                     "40002": "lilei", 
            "40003": "mike" } }

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.