云服务器搭建Leanote线上云笔记
系统环境:centos7.7
vim /etc/yum.repos.d/mongodb-org.repo
[mongodb-org]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
yum list
yum install mongodb-org -y
vim /etc/mongod.conf
net:
port: 27017
bindIp: 0.0.0.0
systemctl start mongod.service
systemctl status mongod
wget --no-check-certificate https://nchc.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
vim leanote/conf/app.conf
mongorestore -h localhost -d leanote --dir /root/leanote/mongodb_backup/leanote_install_data/
nohup bash /root/leanote/bin/run.sh > /root/leanote/run.log 2>&1 &
//如果失败,记得去看一下端口有没有开。。。