yapi 安装配置

yapi

node js 安装

curl -sL https://rpm.nodesource.com/setup_12.x | bash -
yum install -y nodejs
node -v
npm -v

mongodb 安装

vim /etc/yum.repos.d/mongodb-org-4.0.repo

[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

systemctl start mongod

yapi 安装

npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server 


http://192.168.1.151:9090/
部署

node /root/my-yapi/vendors/server/app.js

http://192.168.1.151:3000/
 初始化管理员账号成功,账号名:"[email protected]",密码:"ymfe.org"
 
 
ldap 配置参见官网
https://yapi.ymfe.org/devops/index.html#%E5%AE%89%E8%A3%85

你可能感兴趣的:(工具)