doclever 5.5.1 安装及升级【原创】 博客分类: linux mongodb DOClever
程序员文章站
2024-03-01 22:48:16
...
安装环境Centos 7.2
mkdir /doclever
一定要安装node6.14版本,因为DOClever5.5.1编译是这个版本编译的(否则会出现各种不兼容例如:GLIBCXX_3.4.20)
tar -zxvf node-v6.14.1-linux-x64.tar.gz
ln -s /doclever/node-v6.14.1-linux-x64/bin/npm /usr/local/bin/npm
ln -s /doclever/node-v6.14.1-linux-x64/bin/node /usr/local/bin/node
tar -zxvf mongodb-linux-x86_64-rhel70-3.6.4.tgz mongodb3.6.4
cd mongodb3.6.4/
vi mongodb.conf
<wiz_code_mirror>
port=27017
dbpath=/doclever/mongodb3.6.4/db
logappend=true
fork=true
logpath=/doclever/mongodb3.6.4/db/logs/mongpdb.log
#nohttpinterface=true
bind_ip=0.0.0.0
ln -s /doclever/mongodb3.6.4/bin/mongo /usr/local/bin/mongo
ln -s /doclever/mongodb3.6.4/bin/mongodump /usr/local/bin/mongodump
ln -s /doclever/mongodb3.6.4/bin/mongodump /usr/bin/mongodump
ln -s /doclever/mongodb3.6.4/bin/mongorestore /usr/bin/mongorestore
/doclever/mongodb3.6.4/bin/mongod -f /doclever/mongodb3.6.4/mongodb.conf
firewall-cmd --permanent --add-port=10000/tcp
firewall-cmd --reload
cd /doclever/DOClever
vi config.json
{"db":"mongodb://localhost:27017/DOClever","filePath":"/doclever/DOClever/upload","port":10000}
/doclever/DOClever/Server/bin/www
mkdir /doclever/backup_db
DOClever/DOClever
备份信息:
mongodb执行文件所 /usr/bin 或者指向/doclever/mongodb3.6.4/bin/
数据文件备份目录 /doclever/backup_db
数据库Host localhost
数据库名称 DOClever
数据库名称 DOClever
如果需要还原数据直接将数据拷贝到/doclever/backup_db点击还原即可