|
新人(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的配置文件:0 \3 ^2 C7 E- T& w" D
{% t9 S2 i$ D/ L6 u. @: ?. i
"server":"0.0.0.0",
2 p I% L. b1 R. s/ Y, s6 [1 k3 `"server_port":19383,
. r; i! ]: h, C9 c, P! O% s"local_port":1080,
- m: G5 F: a5 x"password":"YourPassword",
; @" }9 k8 Q5 V" \3 ?: p"timeout":600,' D8 m F# G9 ?7 w2 G% _! F. E
"method":"aes-256-cfb",
; B' J! p+ |, T* v/ I"fast_open":false,
1 F& {$ C, F3 d$ U4 \0 B"workers":1
5 i6 Y' a7 f' ]7 z) {} & [4 M* S' @* z- u
这里特别说明下,之前的SERVER PORT 号小于10000就会出提示:4 Q% Z: S& \4 m& P4 K
Traceback (most recent call last):
& x4 \. R$ b, Q D9 A. Q) NFile "/usr/bin/ssserver", line 9, in <module>+ R1 `1 x' Y3 G5 X4 C& `
loadentry_point('shadowsocks==2.6.8', 'console_scripts', 'ssserver')()
2 I6 r; K- |1 O6 w& P8 LFile "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 60, in main2 _) D/ _4 g8 ?2 c6 i
tcp_servers.append(tcprelay.TCPRelay(a_config, dns_resolver, False))1 ~* a% {; U5 E) G
File "/usr/lib/python2.7/site-packages/shadowsocks/tcprelay.py", line 584, in __init_
" c/ g4 @+ r) Qserver_socket.bind(sa)* T0 X8 h( u( N9 ~
File "/usr/lib64/python2.7/socket.py", line 224, in meth
5 C8 N; m" l# k: V- x8 Wreturn getattr(self._sock,name)(*args); i6 @# B' L$ r" Y! `' z: @
socket.error: [Errno 99] Cannot assign requested address 后面在修改端口到19383后就正常了。非常奇怪。 " ^# |, x1 V8 u; u; z
5 S% ~2 E( x m6 N8 i5.ssserver -c /etc/shadowsocks.json //服务器端启动命令
# H- }* S* ~( t客户端使用GoAgent+ (需要提前科学上网下载好)5 M" N: S, p) ^0 S
然后在GoAgent+ 里配置参数后测试。 参考的网页有:
* k" q& h! K0 K. U1. http://teddysun.com/339.html
8 u) c! o) T3 R5 ]2. http://www.hiadmin.org/code/vps_shadowsocks/comment-page-1#comment-1498284 z( {7 G, J9 b) ]& K2 V$ w+ r
3. http://www.v2ex.com/t/118293 / T) K4 j, t$ M, K
这里选择亚马逊AWS EC2服务器的好处是有1年的免费使用时间,可以把服务器部署到美国,东京,欧洲等地方便使用。网络情况也比较理想
. L1 y+ X: o# E1 J x( i& i/ m( a这给帖子本人在V2EX上发表过。这里分享给各位{:soso_e113:} 还有就是求各位发点金币,想下点干货。{:soso_e113:}
! {- w; a m/ U% B! T- S" P |