当前位置:网站首页>leanote私有云笔记搭建

leanote私有云笔记搭建

2022-07-07 04:16:00 大囚长

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 
[email protected]:[email protected]
原网站

版权声明
本文为[大囚长]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Jailman/article/details/125638750