|
新人(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的配置文件: l5 `% J' f- c3 O8 z2 D
{) R1 w6 C' z- Z8 d) U
"server":"0.0.0.0",8 ^' ]; A, o: @( L
"server_port":19383,1 D& x2 [8 C. J$ g/ b
"local_port":1080,' x# j6 i, b1 c1 q) b1 q9 t5 D4 P
"password":"YourPassword", * Q- n0 p& [2 k- @9 Y9 H
"timeout":600,9 t% B# {8 ]7 o: L' u! z
"method":"aes-256-cfb"," I- }8 @) K- ~1 U/ V
"fast_open":false,6 _% t4 w h- s7 h
"workers":1
1 n0 a. w$ a) ?% w}
+ g4 V9 E; e! c# T2 M这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:
7 B' D: B* D$ x: mTraceback (most recent call last):
# P5 U: N V) `1 VFile "/usr/bin/ssserver", line 9, in <module>
* T2 }, E+ q3 n6 [5 {/ yloadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()* f; Q: G {) q9 v& ^0 X3 l
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main& C& ?4 _) a+ y
tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
7 P- P( r8 D& E( D3 v2 |File "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_3 g2 G) M& k; j" U" c; [& w$ i
server_socket.bind(sa): _5 c* \& m B
File "/usr/lib64/python2.7/socket.py", line 224, in meth7 D3 q: C; A$ w5 s0 a( s8 w5 N! g
return getattr(self._sock,name)(*args)
& W, b H4 y, D' T7 w, [socket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 9 h4 E. ^. N7 Z K. ]' J
9 C+ U7 O' f: s! Q' W/ v0 e5.ssserver -c /etc/shadowsocks.json //服务器端启动命令
/ V3 g6 q8 W( A. _; p9 @0 [1 Z% g客户端使用GoAgent+ (需要提前科学上网下载好)5 g! y& R0 f5 J: g
然后在GoAgent+ 里配置参数后测试。 参考的网页有:+ u! E; |! e2 V Y9 H
1. http://teddysun.com/339.html6 u$ G, W) c8 @& H
2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828
* K- s9 ^) v$ l4 d: V$ A' j3. http://www.v2ex.com/t/118293
( ]/ f" e2 \' z2 m" w4 p1 f这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想 * ~1 s1 W' C. e- C5 e0 ~, P
这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:} 1 ^! P: F& b5 V' m( p% P( B* t( ~
|