|
新人(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的配置文件:( S m% ]% h& B5 X* G( w6 A
{2 }, K( x1 X$ m( v" O1 }
"server":"0.0.0.0",
' G# _: A/ ^! x+ M9 f+ ~* ]/ J"server_port":19383,0 M2 \& Q* T" |. h: i0 i- T- m
"local_port":1080,
& j: f* ~+ Z/ M9 j6 l5 B"password":"YourPassword", 4 E- @5 ~5 m3 }; v- y6 ~
"timeout":600,4 M/ A$ j' m$ d' S- k& N2 B
"method":"aes-256-cfb",- i; I. M0 Q4 `! @& X$ m) e
"fast_open":false,
! Y: Y" E) q7 a* w, Z( z"workers":1
' T' D I0 B& D: H" I0 B} , c+ ?3 `6 U3 U+ Z
这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:
7 D" {1 }! K- T. m' b6 wTraceback (most recent call last):
4 P" _: ?; |! u) `7 ZFile "/usr/bin/ssserver", line 9, in <module>" o/ r2 m, \! C* e* j$ p2 v% N, h
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()* K4 w p& J( q. _0 I
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main
5 @, s7 T; y# D9 M3 Ltcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))
' W# f, \. ]" m. O' {1 k. MFile "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_
; ?5 W) e( x( y' d J# K/ `4 Aserver_socket.bind(sa)
0 u) _1 W+ s! DFile "/usr/lib64/python2.7/socket.py", line 224, in meth. a0 S, N8 F( d# y( o w- S
return getattr(self._sock,name)(*args)
@' h$ U: c+ W1 Z. Ssocket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。
; |3 s$ u0 I+ W" {* a- R7 Z+ W2 x6 ~9 S6 W" e% N
5.ssserver -c /etc/shadowsocks.json //服务器端启动命令
! G1 U% W3 ~3 E% H, G客户端使用GoAgent+ (需要提前科学上网下载好)
6 d$ c2 K+ W$ I( J4 ^然后在GoAgent+ 里配置参数后测试。 参考的网页有:
6 [4 D6 A4 f8 k8 y5 _3 P1. http://teddysun.com/339.html
8 D, N0 m P' k2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-149828, h9 Z7 X! ^. T1 w. b( I: q
3. http://www.v2ex.com/t/118293
7 l* n5 |% g2 p7 S这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想 ; `- ^) }0 D y/ N, k8 N
这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:}
" G6 ]4 h% G$ w3 {7 W- \ |