wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz
tar zxvf mongodb-linux-x86_64-3.0.6.tgz
mv mongodb-linux-x86_64-3.0.6 /usr/local/mongodb
echo export PATH=$PATH:/usr/local/mongodb/bin >> /etc/profile
mongod --dbpath /home/data
mongod --fork --dbpath=/home/data --logpath=/home/mongologs --logappend
wget https://nchc.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz --no-check-certificate
tar zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
mongorestore -h localhost -d leanote --dir /usr/local/leanote/mongodb_backup/leanote_install_data/
cd /usr/local/leanote/bin
nohup bash run.sh >run.log 2>&1 &