优化添加节点提示

This commit is contained in:
marvzhang
2020-04-20 13:53:56 +08:00
parent ceb6a33d98
commit c53427c04b
2 changed files with 2 additions and 30 deletions

View File

@@ -5,20 +5,6 @@ You cannot add nodes directly on the web interface in Crawlab.
Adding a node is quite simple. The only thing you have to do is to run a Crawlab service on your target machine.
#### Docker Deployment
If you are running Crawlab using Docker, you can start a new \`worker\` container on the target machine, or add a \`worker\` service in the \`docker-compose.yml\`.
\`\`\`bash
docker run -d --restart always --name crawlab_worker \\
-e CRAWLAB_SERVER_MASTER=N \\
-e CRAWLAB_MONGO_HOST=xxx.xxx.xxx.xxx \\ # make sure you are connecting to the same MongoDB
-e CRAWLAB_REDIS_ADDRESS=xxx.xxx.xxx.xxx \\ # make sure you are connecting to the same Redis
tikazyq/crawlab:latest
\`\`\`
#### Direct Deploy
If you are deploying directly, the only thing you have to do is to run a backend service on the target machine, you can refer to [Direct Deploy](https://docs.crawlab.cn/Installation/Direct.html).
For more information, please refer to the [Official Documentation](https://docs.crawlab.cn).
For details, please refer to the [Multi-Node Deployment Documentation](https://docs.crawlab.cn/Installation/MultiNode.html).
`
}

View File

@@ -545,21 +545,7 @@ export default {
添加节点的方式非常简单,您只需要在目标机器上运行一个 Crawlab 服务就可以了。
#### Docker 部署
如果您是用 Docker 启动 Crawlab可以在目标机器上运行一个新的 \`worker\` 容器,或者在 \`docker-compose.yml\` 中添加 \`worker\` 服务。
\`\`\`bash
docker run -d --restart always --name crawlab_worker \\
-e CRAWLAB_SERVER_MASTER=N \\
-e CRAWLAB_MONGO_HOST=xxx.xxx.xxx.xxx \\ # 保证连接的是同一个 MongoDB
-e CRAWLAB_REDIS_ADDRESS=xxx.xxx.xxx.xxx \\ # 保证连接的是同一个 Redis
tikazyq/crawlab:latest
\`\`\`
#### 直接部署
如果您是用直接部署,只需要在目标机器上启动一个后端服务,请参考 [直接部署文档](https://docs.crawlab.cn/Installation/Direct.html)。
更多信息,请参考 [官方文档](https://docs.crawlab.cn)。
具体操作,请参照 [多节点部署文档](https://docs.crawlab.cn/Installation/MultiNode.html)。
`,
// 教程