|
新人(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的配置文件:* F. ^/ k; ], F6 ?" V
{1 X8 n5 H8 M1 |4 @. d
"server":"0.0.0.0",0 t7 k* L* P, o
"server_port":19383,6 \% p8 L3 g7 N" M5 E- b
"local_port":1080,
, `9 @: M( b4 Q4 x"password":"YourPassword",
$ f% }. o) V+ h7 }& X: K; ?! R; p"timeout":600,
2 F& P. z) v# Z h( L"method":"aes-256-cfb",
1 c! _: j0 w$ U; c8 S8 L& a. K"fast_open":false,
) L$ p$ h" N: H"workers":15 k- ~4 c9 r" J* m t3 D
} . m3 E' j% H4 H* z' `
这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:
' m$ ?& ^! I9 [! J9 V! b3 u& ~Traceback (most recent call last):
- R6 M, \) d( Y% p+ U* ZFile "/usr/bin/ssserver", line 9, in <module>
- d$ I* W$ W+ R; t \loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()& U+ i' \1 l7 k2 Z- U# b$ j
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main2 V* ?9 k& v/ e6 B: ^
tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
+ g- L: Q: P5 c: t& wFile "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_
. o8 x4 X( ^" L; ^! Tserver_socket.bind(sa)* j1 }- b! u( e9 x
File "/usr/lib64/python2.7/socket.py", line 224, in meth9 B+ m5 w7 b$ [+ }
return getattr(self._sock,name)(*args), {$ p$ ?5 h* q3 T! e8 k$ G
socket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。
# G/ C. ]7 @0 K% I, P$ n- @) D$ ]9 {: S4 F
5.ssserver -c /etc/shadowsocks.json //服务器端启动命令 y6 a: u4 I+ m! x
客户端使用GoAgent+ (需要提前科学上网下载好)
2 ^7 X+ A5 c0 |( A0 ?+ N然后在GoAgent+ 里配置参数后测试。 参考的网页有:
' O6 z5 l# ~ U A! z% A1. http://teddysun.com/339.html
2 @0 ?) p1 Y0 ?/ d1 \2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828 x# x, ^6 o, f/ p( q7 J
3. http://www.v2ex.com/t/118293
! ~4 O! ^+ ?0 `" T这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想
( P0 d7 I4 U8 z$ R/ l* Z这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:} * G" ~1 X- l2 C8 f! u
|