|
新人(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的配置文件:
! R/ t7 X3 }+ `% M0 {: S. h3 @+ ]
{( A0 r! {$ k8 x5 h: I
"server":"0.0.0.0",
) i7 L2 I& ~8 @"server_port":19383,
7 y e. [( L- @0 |"local_port":1080,$ X9 G+ D3 y4 \3 x
"password":"YourPassword",
2 ?4 S( j' x S0 ~) i/ W3 y"timeout":600,8 F: B" B0 s* a. a( a5 N" F
"method":"aes-256-cfb",- u* H: W7 K- g0 r, x. g
"fast_open":false,
" F: \ u6 x3 c5 H+ I6 s! d l- H"workers":1
5 E& I' S3 u, @7 @}
$ {" v7 P; B: Q9 A. _2 x这里特别说明下,之前的SERVER PORT 号小于10000就会出提示: w4 a7 R" q4 |2 h$ `
Traceback (most recent call last):
6 z7 g7 S, _4 n" W5 ?+ s4 {0 V% ~File "/usr/bin/ssserver", line 9, in <module>7 ~9 |, J2 `8 W) K8 i$ z* c0 n( M5 M
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()
+ M) X$ G, |: w. I! }, DFile "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main4 E I* t7 _6 j( b* K/ I5 I" ]
tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))( [+ S9 |: G, S: P- W
File "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_( ^1 m! Z: Z. O( }
server_socket.bind(sa). P0 V( y/ d- b
File "/usr/lib64/python2.7/socket.py", line 224, in meth
) d9 s9 @! e" S2 t2 s$ S$ e' F1 }& H, creturn getattr(self._sock,name)(*args)/ a; i" l \; I5 g g4 p. n
socket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 1 x8 Z) \9 J+ {9 y$ W! b
7 S( s0 ~, f# f$ F
5.ssserver -c /etc/shadowsocks.json //服务器端启动命令
/ N( r7 `; o0 V2 U客户端使用GoAgent+ (需要提前科学上网下载好)
- m0 f# e& Y: ` a然后在GoAgent+ 里配置参数后测试。 参考的网页有:; N. d' `0 P0 ]- {0 m
1. http://teddysun.com/339.html
9 u) U' F7 |$ L ?8 K1 t( T3 M: o' B2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828
$ c) n3 \7 k w2 p0 s" X# B; K1 t( e8 y3. http://www.v2ex.com/t/118293 + R+ [ G8 V: N' }* G! M" g
这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想
$ Y/ y% M2 C; f" P9 L$ H这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:}
' a9 E" t: n* L8 r* _# o6 n3 A$ R1 _+ e" C |