2021-09-02 13:43:45 +08:00
|
|
|
# 青龙使用教程
|
|
|
|
|
|
|
|
## 一、进入青龙容器内部
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker exec -it qinglong bash
|
|
|
|
```
|
|
|
|
|
|
|
|
## 二、安装依赖
|
|
|
|
|
|
|
|
```bash
|
|
|
|
apk add --no-cache gcc g++ python python-dev py-pip mysql-dev linux-headers libffi-dev openssl-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip3 install dailycheckin --upgrade
|
|
|
|
```
|
|
|
|
|
2021-09-03 20:29:36 +08:00
|
|
|
> 如果上述命令仍然安装失败运行下面的命令
|
|
|
|
|
|
|
|
```bash
|
2021-09-07 16:26:36 +08:00
|
|
|
apk add --no-cache --virtual .build-deps gcc musl-dev python2-dev python3-dev
|
2021-09-03 20:29:36 +08:00
|
|
|
pip3 install pip setuptools --upgrade
|
|
|
|
pip3 install cryptography~=3.2.1
|
|
|
|
```
|
|
|
|
|
|
|
|
## 三、新建并编写 `/ql/scripts/config.json` 配置文件
|
2021-09-02 13:43:45 +08:00
|
|
|
|
2021-09-07 16:26:36 +08:00
|
|
|
> ⚠️ 请务必到 [http://www.json.cn](http://www.json.cn) 网站检查 `config.json` 文件格式是否正确!
|
|
|
|
|
2021-09-02 13:43:45 +08:00
|
|
|
参考[配置说明文档](https://sitoi.gitee.io/dailycheckin/settings/) ,并修改 `config.json`
|
|
|
|
|
|
|
|
## 四、配置定时任务
|
|
|
|
|
2021-09-03 13:30:38 +08:00
|
|
|
1. 运行全部脚本
|
2021-09-22 16:29:58 +08:00
|
|
|
![定时任务](img/ql-base.png)
|
2021-09-03 13:30:38 +08:00
|
|
|
2. 运行指定脚本(包含),可以同时选择多个,用「空格」分开
|
2021-09-22 16:29:58 +08:00
|
|
|
![定时任务](img/ql-include.png)
|
2021-09-03 20:29:36 +08:00
|
|
|
3. 运行指定脚本(排除),可以同时选择多个,用「空格」分开
|
2021-09-22 16:29:58 +08:00
|
|
|
![定时任务](img/ql-exclude.png)
|
2021-09-03 13:30:38 +08:00
|
|
|
4. 配置定时更新
|
2021-09-22 16:29:58 +08:00
|
|
|
![定时更新](img/ql-update.png)
|