天天看點

class5:搭建個人Leanote雲筆記本step1,MongoDBstep2,Leanote

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 &


           

http://公網位址>:9000

Yes