YApi
YApi使用文档
LetsStudy
The growth of age will not be a hindrance to study.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1.7 YApi集成Jenkins自动化
1、在yapi测试集合上,点击服务端测试 2、yapi会生成一个接口地址 3、在jenkins构建选项中选择shell,在里面填写curl请求命令 4、可以使用postman,请求这个接口,然后生成curl命令代码,粘贴即可 5、jenkins保存后执行立即构建,查看控制台,测试通过 ...原创 2021-02-23 01:58:35 · 721 阅读 · 0 评论 -
1.6 yapi修改可视化部署9090端口
一、找到yapi-cli的路径 /usr/lib/node_modules/yapi-cli/src/commands 二、编辑server.js vi server.js 三、修改监听端口原创 2021-02-17 15:59:50 · 1868 阅读 · 2 评论 -
1.5 YApi部署
一、填入必填内容后,直接点击开始部署 二、按照官方文档配置config.json https://hellosean1025.github.io/yapi/devops/index.html 三、开放3000端口,并重启防火墙 firewall-cmd --zone=public --add-port=3000/tcp --permanent firewall-cmd --reload 四、使用pm2重启yapi pm2 start /vendors/server/app.js原创 2021-02-16 17:50:26 · 268 阅读 · 0 评论 -
1.4 mongoDB认证配置
mongodb的密码和mysql不同,mongodb的密码是基于数据库的,而不是基于系统的 1、在后台管理shell中 show dbs 2、进入admin数据库 use admin 3、创建管理员账户 db.createUser({ user: "admin", pwd: "adminpwd", roles: [{ role: "userAdminAnyDatabase", db: "admin" }] }) 关于角色可以参考别人的文章:https://blog.csdn.n原创 2021-02-16 00:58:03 · 595 阅读 · 2 评论 -
1.3 YApi部署,安装MongoDB
相关文档:https://www.runoob.com/mongodb/mongodb-linux-install.html 一、安装linux平台依赖包 yum install libcurl openssl 二、下载tgz包,并解压 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.4.3.tgz tar -zxvf mongodb-linux-x86_64-rhel70-4.4.3.tgz mv mong原创 2021-02-15 23:23:12 · 926 阅读 · 1 评论 -
1.2 安装YApi
一、根据官方文档安装YApi 文档地址:https://hellosean1025.github.io/yapi/devops/index.html#%e5%ae%89%e8%a3%85 1、可视化部署 npm install -g yapi-cli --registry https://registry.npm.taobao.org 2、启动YApi服务 yapi server 3、开放9090端口,并重启防火墙 firewall-cmd --zone=public --add-p.原创 2021-02-15 21:39:18 · 171 阅读 · 0 评论 -
1.1 YApi内网部署,nodejs环境配置
一、安装nodejs环境 linux发行版本支持nodejs参考地址:https://github.com/nodesource/distributions 1、安装nodesource # As root curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash - # No root privileges curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash - 上述原创 2021-02-15 21:34:10 · 468 阅读 · 0 评论
分享