CentOS6.6安裝ShadowSocks服務端

來源:互聯網
上載者:User

CentOS6.6安裝ShadowSocks服務端

1、查看系統

[root@localhost~]#cat/etc/issueCentOSrelease6.6(Final)[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-042stab106.6#1SMPMonApr2014:48:47MSK2015x86_64x86_64x86_64GNU/Linux

2、安裝ShadowSocks

#yuminstallpython-setuptools&&easy_installpip#pipinstallshadowsocks

3、建立設定檔/etc/shadowsocks.json

[root@localhost/]#touch/etc/shadowsocks.json[root@localhost/]#vi/etc/shadowsocks.json{"server":"138.128.208.158","server_port":443,"local_address":"127.0.0.1","local_port":1080,"password":"MyPass","timeout":600,"method":"rc4-md5"}

備忘:加密方式官方預設使用aes-256-cfb,推薦使用rc4-md5,因為 RC4比AES速度快好幾倍。

各欄位說明:

server:伺服器IP

server_port:伺服器連接埠

local_port:本地端連接埠

password:用來加密的密碼

timeout:逾時時間(秒)

method:加密方法,可選擇 “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4″等

4、使用設定檔在後台運行shadowsocks服務

[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstart

備忘:若無設定檔,在後台可以使用一下命令運行:

[root@localhost /]# ssserver -p 443 -k MyPass -m rc4-md5 -d start

5、停止服務

[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstop

參考:

https://github.com/shadowsocks/shadowsocks/wiki/Shadowsocks-使用說明

http://wuchong.me/blog/2015/02/02/shadowsocks-install-and-optimize/

聯繫我們

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