Skip to content

DeployGuide

guojiawei edited this page Sep 10, 2018 · 1 revision

部署指南

  1. MdM2使用Sqlite3作为轻量级数据库,所以请确保服务器上已经安装sqlite3环境
  2. 将项目git clone下来
  3. 在项目目录下使用pip3 install -r requirements.txt安装依赖
  4. 编辑config.porperties文件
    • 修改HOST为服务器想使用的HOST(默认0.0.0.0也可以)
    • 修改PORT为服务器使用的监听端口(默认8080)
    • 修改JWTSecretKey为新的密码
    • 如果有INSTALL字段,删除改行(重新安装也需要这样操作)
  5. python3 MdManager.py启动
  6. 访问http://xxx.xxx.xxx.xxx:xxxx/mdm2/install执行安装

Deployment Guide

  1. MdM2 uses Sqlite3 as a lightweight database, so make sure the sqlite3 environment is installed on the server.
  2. git clone the project
  3. Use the pip3 install -r requirements.txt installation dependency in the project directory.
  4. Edit the config.porperties file
    • Modify HOST to the HOST that the server wants to use (default 0.0.0.0 is also available)
    • Modify PORT as the listening port used by the server (default 8080)
    • Modify JWTSecretKey to a new password
    • If there is an INSTALL field, delete the line (this is also required for reinstallation)
  5. python3 MdManager.py starts
  6. Visit http://xxx.xxx.xxx.xxx:xxxx/mdm2/install to perform the installation.

Clone this wiki locally