From e9fb55cb53e61f343be7c80df4f50c9eeb7a4bf1 Mon Sep 17 00:00:00 2001 From: binaryify Date: Fri, 14 Apr 2017 18:23:28 +0800 Subject: [PATCH] improve document --- README.MD | 10 ++++++++++ docs/README.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.MD b/README.MD index 7015dbc..5dfd0c8 100644 --- a/README.MD +++ b/README.MD @@ -50,6 +50,16 @@ $ npm install ``` shell $ node app.js ``` +服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令: +Mac/Linux +```shell +$ PORT=4000 node app.js +``` + +windows 下使用 git-bash 或者 cmder 等终端执行以下命令: +```shell +$ set PORT=4000 && node app.js +``` ## 使用文档 [文档地址](https://binaryify.github.io/NeteaseCloudMusicApi) diff --git a/docs/README.md b/docs/README.md index 5c05d3b..5d44ae5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -33,7 +33,16 @@ $ npm install $ node app.js ``` -服务器启动,默认端口为3000 +服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令: +Mac/Linux +```shell +$ PORT=4000 node app.js +``` + +windows 下使用 git-bash 或者 cmder 等终端执行以下命令: +```shell +$ set PORT=4000 && node app.js +``` ## 接口文档 -- GitLab