step1,MongoDB
yum -y install mongodb mongodb-server.x86_64 mariadb-devel.i686
systemctl start mongod
step2,Leanote
wget 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
# 修改app.secret=任意字符串
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 &