# 列出文件
ls -l
# 切换进文件夹
cd ./yapi
# 安装MongoDB
sudo apt-get install mongodb
# 启动MongoDB
service mongodb start
# 安装 yapi
npm install -g yapi-cli --registry https://registry.npm.taobao.org
# 启动yapi
yapi server
# 若有端口冲突,可更改启动端口
vim /usr/local/lib/node_modules/yapi-cli/src/commands/server.js
# 更改端口92行
linux yapi部署api
于 2021-09-20 21:12:43 首次发布