Skip to content

Commit

Permalink
优化说明
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed Mar 22, 2021
1 parent 2e0ad72 commit 7795d3d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,28 @@
* 支持链接信息自动识别
* 支持API

## 快速开始
## 安装

**常规安装:**

1. 需安装PHP环境,并确保支持SQLite3
2. 下载源码解压到站点根目录
3.`config.simple.php`修改为`config.php`并填写自己的站点信息
3.`config.simple.php`复制为`data/config.php`并填写自己的站点信息
5. 访问后台:`http://IP/index.php?c=login`

**Docker部署:**

```bash
docker run -itd --name="onenav" -p 80:80 \
-e USER='xiaoz' -e PASSWORD='xiaoz.me' \
-v /data/onenav:/data/wwwroot/default/data \
helloz/onenav
```

* `USER`:设置用户名,上述设置为`xiaoz`
* `PASSWORD`:设置密码,上述设置为`xiaoz.me`
* `/data/onenav`:本机挂载目录,用于持久存储Onenav数据

> 更多说明,请参考帮助文档:https://www.yuque.com/helloz/onenav
## 联系我
Expand Down

0 comments on commit 7795d3d

Please sign in to comment.