Readme
This commit is contained in:
57
README.md
57
README.md
@ -27,62 +27,7 @@ More information about how to install leanote please see:
|
|||||||
* [leanote develop distribution installation tutorial](https://github.com/leanote/leanote/wiki/leanote-develop-distribution-installation-tutorial)
|
* [leanote develop distribution installation tutorial](https://github.com/leanote/leanote/wiki/leanote-develop-distribution-installation-tutorial)
|
||||||
|
|
||||||
### 3.1. Download leanote
|
### 3.1. Download leanote
|
||||||
|
Please see [leanote binary distribution installation tutorial](https://github.com/leanote/leanote/wiki/leanote-binary-distribution-installation-tutorial)
|
||||||
Leanote V1.0.3-beta has been released. Binaries:
|
|
||||||
|
|
||||||
* Linux: [leanote-linux-x86_64.v1.0-beta.3.bin.tar.gz](https://github.com/leanote/leanote/releases/download/1.0-beta.3/leanote-linux-x86_64.v1.0-beta.3.bin.tar.gz)
|
|
||||||
* MacOS X: [leanote-mac-x86_64.v1.0-beta.3.bin.tar.gz](https://github.com/leanote/leanote/releases/download/1.0-beta.3/leanote-mac-x86_64.v1.0-beta.3.bin.tar.gz)
|
|
||||||
|
|
||||||
Or you can clone [Leanote bin repository](https://github.com/leanote/leanote-bin) (Recommend)
|
|
||||||
|
|
||||||
### 3.2. Install MongoDB
|
|
||||||
|
|
||||||
Leanote is written in go using [revel](https://revel.github.io/) and [MongoDB](https://www.mongodb.org). Thus, you need to first install MongoDB.
|
|
||||||
|
|
||||||
For more tips please have a look at [our wiki](https://github.com/leanote/leanote/wiki/Install-Mongodb)
|
|
||||||
|
|
||||||
### 3.3. Import initial MongoDB data
|
|
||||||
|
|
||||||
The mongodb data is in `[PATH_TO_LEANOTE]/mongodb_backup/leanote_install_data`
|
|
||||||
|
|
||||||
```
|
|
||||||
$> mongorestore -h localhost -d leanote --directoryperdb PATH_TO_LEANOTE/mongodb_backup/leanote_install_data
|
|
||||||
```
|
|
||||||
|
|
||||||
The initial database contains two users:
|
|
||||||
|
|
||||||
```
|
|
||||||
user2 username: admin, password: abc123 (administrator)
|
|
||||||
user3 username: demo, password: demo@leanote.com (this user is for demo)
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.4. Configuration
|
|
||||||
|
|
||||||
Modify `[PATH_TO_LEANOTE]/conf/app.conf`. Available configuration options are:
|
|
||||||
|
|
||||||
``mongodb`` **required**
|
|
||||||
|
|
||||||
```Shell
|
|
||||||
db.host=localhost
|
|
||||||
db.port=27017
|
|
||||||
db.dbname=leanote
|
|
||||||
db.username=
|
|
||||||
db.password=
|
|
||||||
```
|
|
||||||
|
|
||||||
``app.secret`` **required** **important**
|
|
||||||
The secret key used for cryptographic operations (revel.Sign).
|
|
||||||
|
|
||||||
FOR SECURITY, YOU MUST CHANGE IT!!
|
|
||||||
|
|
||||||
For more infomation please see `app/app.conf` and the [revel manuals](https://revel.github.io/)
|
|
||||||
|
|
||||||
### 3.5. Run leanote
|
|
||||||
|
|
||||||
```
|
|
||||||
$> cd PATH_TO_LEANOTE/bin
|
|
||||||
$> sudo sh run.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## 4. How to develop leanote
|
## 4. How to develop leanote
|
||||||
|
|
||||||
|
57
README_zh.md
57
README_zh.md
@ -24,65 +24,10 @@ Leanote, 不只是笔记!
|
|||||||
leanote是一款私有云笔记, 你可以下载它安装在自己的服务器上, 当然也可以在 http://leanote.com 上注册.
|
leanote是一款私有云笔记, 你可以下载它安装在自己的服务器上, 当然也可以在 http://leanote.com 上注册.
|
||||||
|
|
||||||
这里详细整理了leanote二进版和leanote开发版的安装教程, 请移步至:
|
这里详细整理了leanote二进版和leanote开发版的安装教程, 请移步至:
|
||||||
|
|
||||||
* [leanote二进制详细安装教程](https://github.com/leanote/leanote/wiki/leanote%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B)
|
* [leanote二进制详细安装教程](https://github.com/leanote/leanote/wiki/leanote%E4%BA%8C%E8%BF%9B%E5%88%B6%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B)
|
||||||
* [leanote开发版详细安装教程](https://github.com/leanote/leanote/wiki/leanote%E5%BC%80%E5%8F%91%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B)
|
* [leanote开发版详细安装教程](https://github.com/leanote/leanote/wiki/leanote%E5%BC%80%E5%8F%91%E7%89%88%E8%AF%A6%E7%BB%86%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B)
|
||||||
|
|
||||||
### 3.1. 下载leanote
|
|
||||||
|
|
||||||
Leanote V1.0-beta.3 已发布, 二进制文件(暂时没有windows版的):
|
|
||||||
|
|
||||||
* Linux: [leanote-linux-x86_64.v1.0-beta.3.bin.tar.gz](https://github.com/leanote/leanote/releases/download/1.0-beta.3/leanote-linux-x86_64.v1.0-beta.3.bin.tar.gz)
|
|
||||||
* MacOS X: [leanote-mac-x86_64.v1.0-beta.3.bin.tar.gz](https://github.com/leanote/leanote/releases/download/1.0-beta.3/leanote-mac-x86_64.v1.0-beta.3.bin.tar.gz)
|
|
||||||
|
|
||||||
或者直接检出[Leanote bin repository](https://github.com/leanote/leanote-bin) (推荐, 因为为最新版本)
|
|
||||||
|
|
||||||
### 3.2. 安装 MongodbDB
|
|
||||||
|
|
||||||
Leanote是由golang(使用[revel](https://revel.github.io/)框架 和 [MongoDB](https://www.mongodb.org)数据库), 你需要先安装Mongodb.
|
|
||||||
|
|
||||||
安装MongodbDB, 导入数据更多细节请查看: [wiki](https://github.com/leanote/leanote/wiki/Install-Mongodb)
|
|
||||||
|
|
||||||
### 3.3. 导入初始数据
|
|
||||||
|
|
||||||
MongodbDB初始数据在 `[PATH_TO_LEANOTE]/mongodb_backup/leanote_install_data`
|
|
||||||
|
|
||||||
```
|
|
||||||
$> mongorestore -h localhost -d leanote --directoryperdb PATH_TO_LEANOTE/mongodb_backup/leanote_install_data
|
|
||||||
```
|
|
||||||
|
|
||||||
初始数据包含两个用户:
|
|
||||||
|
|
||||||
```
|
|
||||||
user2 username: admin, password: abc123 (管理员, 重要!)
|
|
||||||
user3 username: demo@leanote.com, password: demo@leanote.com (为体验使用)
|
|
||||||
```
|
|
||||||
|
|
||||||
### 3.4. 配置
|
|
||||||
|
|
||||||
修改 `[PATH_TO_LEANOTE]/conf/app.conf`. 有以下选项:
|
|
||||||
|
|
||||||
``mongodb`` **必须配置!**
|
|
||||||
|
|
||||||
```Shell
|
|
||||||
db.host=localhost
|
|
||||||
db.port=27017
|
|
||||||
db.dbname=leanote
|
|
||||||
db.username=
|
|
||||||
db.password=
|
|
||||||
```
|
|
||||||
|
|
||||||
``app.secret`` **重要**
|
|
||||||
请随意修改一个, app的密钥, 不能使用默认的, 不然会有安全问题
|
|
||||||
|
|
||||||
更多配置请查看 `app/app.conf` 和 [revel 手册](https://revel.github.io/)
|
|
||||||
|
|
||||||
### 3.5. 运行leanote
|
|
||||||
|
|
||||||
```
|
|
||||||
$> cd PATH_TO_LEANOTE/bin
|
|
||||||
$> sudo sh run.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## 4. 如何对leanote进行二次开发
|
## 4. 如何对leanote进行二次开发
|
||||||
|
|
||||||
请查看 [How-to-develop-leanote](https://github.com/leanote/leanote/wiki/How-to-develop-leanote-%E5%A6%82%E4%BD%95%E5%BC%80%E5%8F%91leanote)
|
请查看 [How-to-develop-leanote](https://github.com/leanote/leanote/wiki/How-to-develop-leanote-%E5%A6%82%E4%BD%95%E5%BC%80%E5%8F%91leanote)
|
||||||
|
Reference in New Issue
Block a user