zoukankan      html  css  js  c++  java
  • [mongo]-只使用mongo作为数据存储的DoraCMS系统安装部署

    0.项目地址

    https://gitee.com/doramart/DoraCMS
    

    1.安装Node环境

    cd /opt/
    #wget https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz
    tar xf node-v12.13.0-linux-x64.tar.xz
    mv node-v12.13.0-linux-x64 node
    chown -R root:root node
    echo "export PATH=$PATH:/opt/node/bin" >> /etc/profile
    source /etc/profile 
    npm -v
    node -v 
    

    2.安装mogno

    yum install libcurl openssl -y
    #wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.14.tgz
    tar zxf mongodb-linux-x86_64-rhel70-4.0.14.tgz -C /opt/
    cd /opt/
    ln -s mongodb-linux-x86_64-rhel70-4.0.14 mongodb
    mkdir -p /opt/mongo_27017/{conf,log,pid}
    mkdir -p /data/mongo_27017 
    cat >/opt/mongo_27017/conf/mongodb.conf<<EOF
    systemLog:
      destination: file   
      logAppend: true  
      path: /opt/mongo_27017/log/mongodb.log
    
    storage:
      journal:
        enabled: true
      dbPath: /data/mongo_27017
      directoryPerDB: true
      wiredTiger:
        engineConfig:
          cacheSizeGB: 0.5
          directoryForIndexes: true
        collectionConfig:
          blockCompressor: zlib
        indexConfig:
          prefixCompression: true
    
    processManagement:
      fork: true
      pidFilePath: /opt/mongo_27017/pid/mongod.pid
    
    net:
      port: 27017
      bindIp: 127.0.0.1,10.0.0.51
    EOF
    echo 'export PATH=/opt/mongodb/bin:$PATH' >> /etc/profile
    source /etc/profile
    /opt/mongodb/bin/mongod -f /opt/mongo_27017/conf/mongodb.conf
    

    3.部署代码

    cd /opt/
    unzip doramart-DoraCMS-2.1.6.zip
    

    4.修改服务配置

    cd /opt/DoraCMS/install
    
    vim serverConfig.js   
    ---------------------------
    
    const serverConfig = {
        env: "development",
        mongodbBinPath: "/opt/mongodb/bin/",
        dbIP: "127.0.0.1",
        dbPort: "27017",
        dbName: "doracms2",
        dbUserName: "",
        dbPassword: "",
        os: "Linux",
        domain: "http://10.0.0.51:8080",
        port: 8080,
        tbAgent: "1",
    }
    
    module.exports = serverConfig;
    ---------------------------
    

    5.管理员登陆

    http://10.0.0.51:8080/dr-admin
    doramart 123456    
    doracms 123456
    

    6.后台页面

  • 相关阅读:
    OBS Studio使用日记——第一次使用黑屏
    了不起的网站链接
    【PTA】L1-006 连续因子 (20分)
    【PTA】L1-048 矩阵A乘以B (15分)
    【PTA】L1-034点赞
    【PTA】L1-028 判断素数 (10分)
    【PTA】L2-001 紧急救援 (25分)
    UEditor 富文本编辑器 上传图片 配置
    在存储过程中使用表变量实现批量导入
    SharePoint Designer 2013 开启新式验证(Modern Authentication)
  • 原文地址:https://www.cnblogs.com/alaska/p/12865275.html
Copyright © 2011-2022 走看看