|
新人(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的配置文件:
8 w* b3 z4 c1 s! K- `; J* f, x
{1 {, p8 }# r" m7 U
"server":"0.0.0.0",
8 u m# l6 B6 s0 l0 }1 m"server_port":19383,6 b# i* j! K; r N) V- U G0 T5 N# ?
"local_port":1080,' Y: C6 y: B1 h! j
"password":"YourPassword", ! W% w- l) H9 j% r
"timeout":600,
3 q' K! m& \2 ]"method":"aes-256-cfb",
M( Y( _$ Z9 a s/ f4 v/ @+ G"fast_open":false,% p: m7 q, ?4 n6 J4 G/ ^5 k
"workers":1
* U8 b2 ?6 D5 ^. V} + k* \- Z) z4 m4 N4 L% H* Y. h
这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:
1 f% ~/ v& j% ?* |# g5 d& lTraceback (most recent call last):( P( a- @, J2 }: ]' i
File "/usr/bin/ssserver", line 9, in <module> q- f9 W: R- H2 g) L q/ g
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')(): B( @7 m; d2 r7 c( u" ]2 }
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main
% b/ h- t, M# v6 e4 w( S9 |tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
; y' I ~* }& |3 bFile "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_ j- k2 n- k. n# m5 F
server_socket.bind(sa)6 z u. m5 C0 R* i; O) S
File "/usr/lib64/python2.7/socket.py", line 224, in meth
, c8 u3 M# ]& dreturn getattr(self._sock,name)(*args)
% z. B1 L; t1 u% j1 | s9 Usocket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 / s# d! y' y, |( i$ R& {
* W0 {' D1 ^% L
5.ssserver -c /etc/shadowsocks.json //服务器端启动命令 7 Z- Y" h1 W; A! }
客户端使用GoAgent+ (需要提前科学上网下载好)! z0 o ~* }7 J( V3 c
然后在GoAgent+ 里配置参数后测试。 参考的网页有:3 N ~! s% |: z: [; D- W0 @1 k
1. http://teddysun.com/339.html& T9 E" Q) Q ]
2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828
0 @" Y' C7 O# u" v3. http://www.v2ex.com/t/118293 ' S* g( B& T) H7 C9 ? G! u Y; c3 B
这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想 2 J" P7 o+ r% b
这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:}
" y% r" Y6 _5 h9 b; H8 h |