Centos 搭建shadowsocks伺服器教程,centosshadowsocks

來源:互聯網
上載者:User

Centos 搭建shadowsocks伺服器教程,centosshadowsocks

安裝shadowsocks:

[root@localhost ~]# yum install -y epel-release[root@localhost ~]# yum install python-pip[root@localhost ~]# pip install shadowsocks

在/etc目錄下建立 shadowsocks.json 檔案,將下面的內容放進去:

[root@localhost ~]# vi /etc/shadowsocks.json{    "server":"0.0.0.0",#服務端監聽地址,服務端可填寫 0.0.0.0    "server_port":8388,#伺服器連接埠    "local_address": "0.0.0.0",#代理監聽地址    "local_port":1080,#代理監聽連接埠    "password":"mypassword",#shadowsocks串連密碼    "timeout":300,#逾時時間,單位秒    "method":"aes-256-cfb",#加密方式。預設是: “aes-256-cfb”    "fast_open": false,#不懂,不修改即可    "workers": 1#不懂,不修改即可}

啟動運行 shadowsocks伺服器端:

[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d start啟動[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d stop停止[root@localhost ~]# ssserver -c /etc/shadowsocks.json -d restart重啟

shadowsocks就可以使用了

shadowsocks多連接埠配置:

{"server":"0.0.0.0","server_port":8388,"local_address": "127.0.0.1","local_port":1080,"port_password":{        "8":"123455",        "88":"123456",        "888":"123456",        "8888":"123456"},"timeout":300,"method":"aes-256-cfb","fast_open": false,"workers": 1}

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.