leanote 是个不错的个人笔记+博客网站,主要不错的功能
-
可以将笔记一键设置成博客
-
支持Markdown
-
可以多人协作
页面展示
博客页面
开始搭建博客
1. 下载mongo ,leanote
1.1 下载并解压
1.2 目录规划
这里因为买的一个轻量云服务器,图省事就用root账号,root目录安装了
-
Mongodb: /root/mongodb-linux-x86_64-3.0.1
-
Leanote: /root/leanote
2. 安装Mongodb
2.1 添加到类路径
<span style="background-color:#f8f8f8"><span style="color:#333333">vim /etc/profile
export MONGO_HOME=/root/mongodb-linux-x86_64-3.0.1
export PATH=$PATH:$MONGO_HOME/bin
source /etc/profile</span></span>
2.2 启动Mongodb并初始化数据
nohup mongod --dbpath /root/new_data &
mongorestore -h localhost -d leanote --dir /root/leanote/mo