diff --git a/README.MD b/README.MD index 7015dbc1a027f5ac7b67d6a3d656ffbef8614d9e..5dfd0c880ad1d5fd94d3a92363dcf6213ecc9683 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 5c05d3bebd41869a2b8c87e30182367f1aa806bf..5d44ae5b3f9a8e372981ec8253f70547e5100e0d 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 +``` ## 接口文档