新人(linux系统以及SS服务端部署上)第一次操作,根据百度搜索到的资料分享下部署的经验和碰到的问题, 介绍下安装背景,精简版Red Hat Enterprise Linux 7.1 全程使用root帐号 - yum install python-setuptools && easy_install pip //安装系统依赖包(应该是这样叫吧)
- yum -y install wget //安装系统依赖包(应该是这样叫吧)
- pip install shadowsocks //安装ss
- vi /etc/shadowsocks.json //创建Shadowsocks的配置文件:9 ^& f9 [* h* M" ^ m' M) E) y
{
/ B6 s9 q" p8 Q$ \: L"server":"0.0.0.0",7 C6 f) G/ {5 z0 N. ^) X
"server_port":19383,+ R4 S/ |2 r, s* X
"local_port":1080,- _" r* O5 `" w4 F
"password":"YourPassword",
5 F/ O8 I( o1 {+ Z" K! `"timeout":600,+ ?) _! ]' t" e, K( C1 r; g
"method":"aes-256-cfb",
, N, k A$ a# f2 h; X"fast_open":false,. f: g# T! y; f/ h. Z9 ~
"workers":1
- D+ }0 L% S7 _1 |) q; i} 0 B% K$ f: M3 ]( d% ~
这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:% \2 X* r6 P0 N
Traceback (most recent call last):
% Z3 g$ p2 g8 r% h* E, D% e; W" XFile "/usr/bin/ssserver", line 9, in <module>, p/ v/ @, o) c6 p
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()" r! E" @# ?. Y: x# B4 u2 Q
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main
+ c5 i/ c% m. ^9 x; B! A, `tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
! x5 n2 O! Y7 p0 K; `8 C0 j4 uFile "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_
$ Y0 u4 l( S$ S& Bserver_socket.bind(sa)
. [7 O3 I* w5 m. z: SFile "/usr/lib64/python2.7/socket.py", line 224, in meth
9 c8 g6 p ~, f5 M/ W- Hreturn getattr(self._sock,name)(*args)
. Q2 r# }. u1 tsocket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 M ?& S5 s, B0 H
4 X% b% }- b2 l7 k0 s6 S( G
5.ssserver -c /etc/shadowsocks.json //服务器端启动命令
* |8 d) I5 a' D4 C7 u; c. Y客户端使用GoAgent+ (需要提前科学上网下载好)3 }& u! }# S: L! P
然后在GoAgent+ 里配置参数后测试。 参考的网页有:0 R9 C) z L$ b. j) ]
1. http://teddysun.com/339.html
* d$ `: [5 ?/ t2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828
' N; t' N7 }- U$ _3. http://www.v2ex.com/t/118293
: J" B+ d+ O7 ]* T这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想 3 f% t/ ?7 {: A
这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:} ( d1 x1 R( x0 I4 T2 @
|