yapi内网部署 centos

1、部署方案

官方说明:

https://hellosean1025.github.io/yapi/devops/index.html

2、需要注意的点

(1)在centos等服务启上最好使用“命令行部署”,因为没有浏览器下可视化步骤。

(2)config.json的配置:

{
  "port": "3000",
  "adminAccount": "[email protected]",
  "db": {
    "servername": "127.0.0.1",
    "DATABASE": "yapi",
    "port": 27017,
    "user": "test1",
    "pass": "test1",
    "authSource": ""
  },
  "mail": {
    "enable": true,
    "host": "smtp.163.com",
    "port": 465,
    "from": "***@163.com",
    "auth": {
      "user": "***@163.com",
      "pass": "*****"
    }
  }
}

要根据配置信息建立好mongodb数据库,包括用户名:

 

猜你喜欢

转载自www.cnblogs.com/mengfangui/p/12064502.html
今日推荐