Showing
1 changed file
with
15 additions
and
10 deletions
1 | facebook和谷歌服务代理 | 1 | facebook和谷歌服务代理 |
2 | 2 | ||
3 | ## 安装 node环境 | 3 | ## 安装 node环境 |
4 | -> wget http://nodejs.org/dist/v0.12.2/node-v0.12.2.tar.gz | ||
5 | -> tar -zxvf node-v0.12.2.tar.gz | ||
6 | -> make | ||
7 | -> make install | 4 | +``` shell |
5 | + wget http://nodejs.org/dist/v0.12.2/node-v0.12.2.tar.gz | ||
6 | + tar -zxvf node-v0.12.2.tar.gz | ||
7 | + make | ||
8 | + make install | ||
9 | +``` | ||
8 | 10 | ||
9 | ## 部署代理服务 | 11 | ## 部署代理服务 |
10 | -> git clone http://git.dev.yoho.cn/web/yoho-proxy.git | ||
11 | -> npm install | ||
12 | -> npm install -g pm2 | 12 | +``` shell |
13 | + git clone http://git.dev.yoho.cn/web/yoho-proxy.git | ||
14 | + npm install | ||
15 | + npm install -g pm2 | ||
16 | +``` | ||
13 | 17 | ||
14 | ## 启动服务 | 18 | ## 启动服务 |
15 | -> cd yoho-proxy | ||
16 | -> pm2 start app.js | ||
17 | - | 19 | +``` shell |
20 | + cd yoho-proxy | ||
21 | + pm2 start app.js | ||
22 | +``` | ||
18 | ## 注意:代理服务占用了80端口,如果需要80端口,请修改代码113行。 | 23 | ## 注意:代理服务占用了80端口,如果需要80端口,请修改代码113行。 |
19 | 24 | ||
20 | ``` javascript | 25 | ``` javascript |
-
Please register or login to post a comment