Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee authored Jun 15, 2024
1 parent 06419e4 commit 17ec5ee
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,33 +40,26 @@
3. 执行下列命令

```bash
# 进入项目根目录
cd Crawler
make run
# make run 参数
#
# 端口号,默认 8080
# port=8081
#
# 线程数 默认 4
# thread=4
```

可选,通过`port``thread`参数指定端口(默认8080)和线程数(默认4)。

4. 查看日志
日志默认存放在`.log/`目录下,`access.log``error.log`为访问日志和错误日志,crawler.log为爬虫日志。

日志默认存放在`.log/`目录下,`access.log``error.log`为访问日志和错误日志,crawler.log为爬虫日志。

### 使用docker

1. 一键启动

```bash
sudo docker run -d --name crawler -p 8080:8080 shilongli0101/crawler
# 环境变量
#
# 线程数默认值4
# -e THREADS=4
```

可选,通过`docker`环境变量`THREADS`指定线程数(默认4)。

2. 查看日志

```bash
Expand Down

0 comments on commit 17ec5ee

Please sign in to comment.