leanote私有云笔记搭建
1、创建用户
useradd leanote
su - leanote
2、下载leanote安装包
wget --no-check-certificate https://sourceforge.net/projects/leanote-bin/files/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
3、下载和安装mongodb
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.1.tgz
tar -xzvf mongodb-linux-x86_64-3.0.1.tgz
export PATH=$PATH:/home/leanote/mongodb-linux-x86_64-3.0.1/bin
mkdir /home/leanote/data
mongod --dbpath /home/leanote/data &
测试
mongo
show dbs;
导入数据
mongorestore -h localhost -d leanote --dir leanote/mongodb_backup/leanote_install_data/
4、启动leanote
# 安全起见leanote建议修改leanote/conf/app.conf app.secret
cd leanote/bin/
bash run.sh &
5、登录查看
localhost:9000
# m默认用户名密码
admin:abc123
demo@leanote.com:demo@leanote.com