新人(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的配置文件:
$ m6 K8 U, V9 H; H. m* d2 w
{
$ L- a) j5 u% G/ `( P"server":"0.0.0.0",, @( [$ W7 H+ W' N
"server_port":19383,2 k) K' p1 h! k% g
"local_port":1080,; @1 V+ Q9 r" R! Z% Y
"password":"YourPassword",
7 i4 `5 h) w8 ?- _' ]1 j1 M" ^) u"timeout":600,7 v- s Q% H& ?
"method":"aes-256-cfb",
5 D) _4 s8 F6 K- H1 ~"fast_open":false,
) f) x# j6 z7 X, P F' |& k1 u"workers":1
* y9 k' D: A+ x- j6 c: p+ y0 t) W}
1 V; D3 T6 _3 Y i5 C这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:
$ R( d" i8 j, m0 |6 H! f. H0 PTraceback (most recent call last): L' v/ u# D8 i9 @ Q4 v
File "/usr/bin/ssserver", line 9, in <module>, X- w& a4 {. Z" g0 @1 Y8 F/ g' |
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()
/ C6 I# B( I* G% P" s: }File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main
0 t+ C d& \# U0 Y. f: s5 L0 utcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
0 i, t& t# [& GFile "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_
4 n! q, Q: q7 n. Q8 iserver_socket.bind(sa)
' a5 |, H1 s# \% B5 u, M, Y$ Z8 W1 {3 [File "/usr/lib64/python2.7/socket.py", line 224, in meth! |- P- F" B$ e
return getattr(self._sock,name)(*args)( m$ d: W1 E6 \
socket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 $ z5 K4 y$ ^' K" b3 |+ j
/ J" ?% Z) `: i. e0 g5.ssserver -c /etc/shadowsocks.json //服务器端启动命令 , A, k: U( z: I' E0 L, l% O
客户端使用GoAgent+ (需要提前科学上网下载好)
" Q8 [" f7 [0 p) K4 {然后在GoAgent+ 里配置参数后测试。 参考的网页有:7 _, Q0 v( f# o( N! S$ ]1 _
1. http://teddysun.com/339.html
7 r: d" _: h: R& z2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828: s! w# T k/ }2 q0 B
3. http://www.v2ex.com/t/118293
' S7 w [# I- \3 w* s这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想 ' q6 V- i7 v) y0 t$ b8 Y
这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:}
8 ~9 Y4 V( K1 {& y |