只使用mongo作爲數據存儲的DoraCMS系統安裝部署

軟件包地址
鏈接:https://pan.baidu.com/s/1Oifdbvd0JnwD0LzKbid1UQ
提取碼:y576

鏈接:https://pan.baidu.com/s/1Ba_UKoT1viy9NEUBO3XuiQ
提取碼:i2mg

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、安裝MongoDB

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: "10.0.0.51",
    dbPort: "27017",
    dbName: "doracms2",
    dbUserName: "",
    dbPassword: "",
    os: "Linux",
    domain: "http://10.0.0.51:8080",
    port: 8080,
    tbAgent: "1",
}

module.exports = serverConfig;
---------------------------

運行啓動命令

[root@db01 DoraCMS]# npm run doracms

5.管理員登陸

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

在這裏插入圖片描述
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章