updated docs

This commit is contained in:
Marvin Zhang
2019-06-16 22:04:16 +08:00
parent 01a1b39ad1
commit 5bca22489e
91 changed files with 15220 additions and 5995 deletions

View File

@@ -0,0 +1,632 @@
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>直接部署 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="Preview.html" />
<link rel="prev" href="Docker.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
Crawlab简介
</a>
</li>
<li class="chapter " data-level="1.2" data-path="./">
<a href="./">
安装Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="Docker.html">
<a href="Docker.html">
Docker
</a>
</li>
<li class="chapter active" data-level="1.2.2" data-path="Direct.html">
<a href="Direct.html">
直接部署
</a>
</li>
<li class="chapter " data-level="1.2.3" data-path="Preview.html">
<a href="Preview.html">
预览模式
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="../Usage/">
<a href="../Usage/">
使用Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="../Usage/Node/">
<a href="../Usage/Node/">
节点
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1.1" data-path="../Usage/Node/View.html">
<a href="../Usage/Node/View.html">
查看节点列表
</a>
</li>
<li class="chapter " data-level="1.3.1.2" data-path="../Usage/Node/Edit.html">
<a href="../Usage/Node/Edit.html">
修改节点信息
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2" data-path="../Usage/Spider/">
<a href="../Usage/Spider/">
爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1" data-path="../Usage/Spider/Create.html">
<a href="../Usage/Spider/Create.html">
创建爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1.1" data-path="../Usage/Spider/CustomizedSpider.html">
<a href="../Usage/Spider/CustomizedSpider.html">
自定义爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.1.2" data-path="../Usage/Spider/ConfigurableSpider.html">
<a href="../Usage/Spider/ConfigurableSpider.html">
可配置爬虫
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2.2" data-path="../Usage/Spider/Deploy.html">
<a href="../Usage/Spider/Deploy.html">
部署爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.3" data-path="../Usage/Spider/Run.html">
<a href="../Usage/Spider/Run.html">
运行爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.4" data-path="../Usage/Spider/Analytics.html">
<a href="../Usage/Spider/Analytics.html">
统计数据
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.3" data-path="../Usage/Task/">
<a href="../Usage/Task/">
任务
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.3.1" data-path="../Usage/Task/View.html">
<a href="../Usage/Task/View.html">
查看任务
</a>
</li>
<li class="chapter " data-level="1.3.3.2" data-path="../Usage/Task/Action.html">
<a href="../Usage/Task/Action.html">
操作任务
</a>
</li>
<li class="chapter " data-level="1.3.3.3" data-path="../Usage/Task/DownloadResults.html">
<a href="../Usage/Task/DownloadResults.html">
下载结果
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.4" data-path="../Usage/Schedule/">
<a href="../Usage/Schedule/">
定时任务
</a>
</li>
<li class="chapter " data-level="1.3.5" data-path="../Usage/Site/">
<a href="../Usage/Site/">
网站
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="../Architecture/">
<a href="../Architecture/">
架构
</a>
</li>
<li class="chapter " data-level="1.5" data-path="../Examples/">
<a href="../Examples/">
样例
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../Examples/ScrapyIntegration.html">
<a href="../Examples/ScrapyIntegration.html">
与Scrapy集成
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >直接部署</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h2 id="&#x76F4;&#x63A5;&#x90E8;&#x7F72;">&#x76F4;&#x63A5;&#x90E8;&#x7F72;</h2>
<p>&#x76F4;&#x63A5;&#x90E8;&#x7F72;&#x662F;&#x4E4B;&#x524D;&#x6CA1;&#x6709;Docker&#x65F6;&#x7684;&#x90E8;&#x7F72;&#x65B9;&#x5F0F;&#xFF0C;&#x76F8;&#x5BF9;&#x4E8E;Docker&#x90E8;&#x7F72;&#x6765;&#x8BF4;&#x6709;&#x4E9B;&#x7E41;&#x7410;&#x3002;&#x4F46;&#x4E86;&#x89E3;&#x5982;&#x4F55;&#x76F4;&#x63A5;&#x90E8;&#x7F72;&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x66F4;&#x6DF1;&#x5165;&#x5730;&#x7406;&#x89E3;Docker&#x662F;&#x5982;&#x4F55;&#x6784;&#x5EFA;Crawlab&#x955C;&#x50CF;&#x7684;&#x3002;&#x8FD9;&#x91CC;&#x7B80;&#x5355;&#x4ECB;&#x7ECD;&#x4E00;&#x4E0B;&#x3002;</p>
<h3 id="&#x62C9;&#x53D6;&#x4EE3;&#x7801;">&#x62C9;&#x53D6;&#x4EE3;&#x7801;</h3>
<p>&#x9996;&#x5148;&#x662F;&#x5C06;github&#x4E0A;&#x7684;&#x4EE3;&#x7801;&#x62C9;&#x53D6;&#x5230;&#x672C;&#x5730;&#x3002;</p>
<pre><code class="lang-bash">git <span class="hljs-built_in">clone</span> https://github.com/tikazyq/crawlab
</code></pre>
<h3 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h3>
<p>&#x5B89;&#x88C5;&#x524D;&#x7AEF;&#x6240;&#x9700;&#x5E93;&#x3002;</p>
<pre><code class="lang-bash">npm install -g yarn pm2
<span class="hljs-built_in">cd</span> frontend
yarn install
</code></pre>
<p>&#x5B89;&#x88C5;&#x540E;&#x7AEF;&#x6240;&#x9700;&#x5E93;&#x3002;</p>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> ../crawlab
pip install -r requirements
</code></pre>
<h3 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h3>
<p>&#x5206;&#x522B;&#x914D;&#x7F6E;&#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>./frontend/.env.production</code>&#x548C;&#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>./crawlab/config/config.py</code>&#x3002;&#x5206;&#x522B;&#x9700;&#x8981;&#x5BF9;&#x90E8;&#x7F72;&#x540E;API&#x5730;&#x5740;&#x4EE5;&#x53CA;&#x6570;&#x636E;&#x5E93;&#x5730;&#x5740;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#x3002;</p>
<h3 id="&#x6784;&#x5EFA;">&#x6784;&#x5EFA;</h3>
<p>&#x8FD9;&#x91CC;&#x7684;&#x6784;&#x5EFA;&#x662F;&#x6307;&#x524D;&#x7AEF;&#x6784;&#x5EFA;&#xFF0C;&#x9700;&#x8981;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x3002;</p>
<pre><code class="lang-bash"><span class="hljs-built_in">cd</span> ../frontend
npm run build:prod
</code></pre>
<p>&#x6784;&#x5EFA;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x4F1A;&#x5728;<code>./frontend</code>&#x76EE;&#x5F55;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;<code>dist</code>&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x91CC;&#x9762;&#x662F;&#x6253;&#x5305;&#x597D;&#x540E;&#x7684;&#x9759;&#x6001;&#x6587;&#x4EF6;&#x3002;</p>
<h3 id="nginx">Nginx</h3>
<p>&#x5B89;&#x88C5;<code>nginx</code>&#xFF0C;&#x5728;<code>ubuntu 16.04</code>&#x662F;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x3002;</p>
<pre><code class="lang-bash">sudo apt-get install nginx
</code></pre>
<p>&#x6DFB;&#x52A0;<code>/etc/nginx/conf.d/crawlab.conf</code>&#x6587;&#x4EF6;&#xFF0C;&#x8F93;&#x5165;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#x3002;</p>
<pre><code>server {
listen 8080;
server_name dev.crawlab.com;
root /home/yeqing/jenkins_home/workspace/crawlab_develop/frontend/dist;
index index.html;
}
</code></pre><p>&#x5176;&#x4E2D;&#xFF0C;<code>root</code>&#x662F;&#x9759;&#x6001;&#x6587;&#x4EF6;&#x7684;&#x6839;&#x76EE;&#x5F55;&#xFF0C;&#x8FD9;&#x91CC;&#x662F;<code>npm</code>&#x6253;&#x5305;&#x597D;&#x540E;&#x7684;&#x9759;&#x6001;&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x73B0;&#x5728;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x542F;&#x52A8;<code>nginx</code>&#x670D;&#x52A1;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x542F;&#x52A8;&#x524D;&#x7AEF;&#x670D;&#x52A1;&#x3002;</p>
<pre><code class="lang-bash">nginx reload
</code></pre>
<h3 id="&#x542F;&#x52A8;&#x670D;&#x52A1;">&#x542F;&#x52A8;&#x670D;&#x52A1;</h3>
<p>&#x8FD9;&#x91CC;&#x662F;&#x6307;&#x542F;&#x52A8;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x3002;&#x6211;&#x4EEC;&#x7528;<code>pm2</code>&#x6765;&#x7BA1;&#x7406;&#x8FDB;&#x7A0B;&#x3002;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x3002;</p>
<pre><code class="lang-bash">pm2 start app.py <span class="hljs-comment"># API&#x670D;&#x52A1;</span>
pm2 start worker.py <span class="hljs-comment"># Worker</span>
pm2 start flower.py <span class="hljs-comment"># Flower</span>
</code></pre>
<p>&#x8FD9;&#x6837;&#xFF0C;<code>pm2</code>&#x4F1A;&#x542F;&#x52A8;3&#x4E2A;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x6765;&#x7BA1;&#x7406;&#x8FD9;3&#x4E2A;&#x670D;&#x52A1;&#x3002;&#x6211;&#x4EEC;&#x5982;&#x679C;&#x60F3;&#x770B;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x7684;&#x65E5;&#x5FD7;&#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x4EE5;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x3002;</p>
<pre><code class="lang-bash">pm2 logs [app]
</code></pre>
<p>&#x7136;&#x540E;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x8F93;&#x5165;<code>http://localhost:8080</code>&#x5C31;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x754C;&#x9762;&#x4E86;&#x3002;</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="Docker.html" class="navigation navigation-prev " aria-label="Previous page: Docker">
<i class="fa fa-angle-left"></i>
</a>
<a href="Preview.html" class="navigation navigation-next " aria-label="Next page: 预览模式">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"直接部署","level":"1.2.2","depth":2,"next":{"title":"预览模式","level":"1.2.3","depth":2,"path":"Installation/Preview.md","ref":"Installation/Preview.md","articles":[]},"previous":{"title":"Docker","level":"1.2.1","depth":2,"path":"Installation/Docker.md","ref":"Installation/Docker.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Installation/Direct.md","mtime":"2019-06-16T03:18:40.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-16T14:03:57.361Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>

View File

@@ -0,0 +1,707 @@
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Docker · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="Direct.html" />
<link rel="prev" href="./" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
Crawlab简介
</a>
</li>
<li class="chapter " data-level="1.2" data-path="./">
<a href="./">
安装Crawlab
</a>
<ul class="articles">
<li class="chapter active" data-level="1.2.1" data-path="Docker.html">
<a href="Docker.html">
Docker
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="Direct.html">
<a href="Direct.html">
直接部署
</a>
</li>
<li class="chapter " data-level="1.2.3" data-path="Preview.html">
<a href="Preview.html">
预览模式
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="../Usage/">
<a href="../Usage/">
使用Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="../Usage/Node/">
<a href="../Usage/Node/">
节点
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1.1" data-path="../Usage/Node/View.html">
<a href="../Usage/Node/View.html">
查看节点列表
</a>
</li>
<li class="chapter " data-level="1.3.1.2" data-path="../Usage/Node/Edit.html">
<a href="../Usage/Node/Edit.html">
修改节点信息
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2" data-path="../Usage/Spider/">
<a href="../Usage/Spider/">
爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1" data-path="../Usage/Spider/Create.html">
<a href="../Usage/Spider/Create.html">
创建爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1.1" data-path="../Usage/Spider/CustomizedSpider.html">
<a href="../Usage/Spider/CustomizedSpider.html">
自定义爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.1.2" data-path="../Usage/Spider/ConfigurableSpider.html">
<a href="../Usage/Spider/ConfigurableSpider.html">
可配置爬虫
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2.2" data-path="../Usage/Spider/Deploy.html">
<a href="../Usage/Spider/Deploy.html">
部署爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.3" data-path="../Usage/Spider/Run.html">
<a href="../Usage/Spider/Run.html">
运行爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.4" data-path="../Usage/Spider/Analytics.html">
<a href="../Usage/Spider/Analytics.html">
统计数据
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.3" data-path="../Usage/Task/">
<a href="../Usage/Task/">
任务
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.3.1" data-path="../Usage/Task/View.html">
<a href="../Usage/Task/View.html">
查看任务
</a>
</li>
<li class="chapter " data-level="1.3.3.2" data-path="../Usage/Task/Action.html">
<a href="../Usage/Task/Action.html">
操作任务
</a>
</li>
<li class="chapter " data-level="1.3.3.3" data-path="../Usage/Task/DownloadResults.html">
<a href="../Usage/Task/DownloadResults.html">
下载结果
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.4" data-path="../Usage/Schedule/">
<a href="../Usage/Schedule/">
定时任务
</a>
</li>
<li class="chapter " data-level="1.3.5" data-path="../Usage/Site/">
<a href="../Usage/Site/">
网站
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="../Architecture/">
<a href="../Architecture/">
架构
</a>
</li>
<li class="chapter " data-level="1.5" data-path="../Examples/">
<a href="../Examples/">
样例
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../Examples/ScrapyIntegration.html">
<a href="../Examples/ScrapyIntegration.html">
与Scrapy集成
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >Docker</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h2 id="docker&#x5B89;&#x88C5;&#x90E8;&#x7F72;">Docker&#x5B89;&#x88C5;&#x90E8;&#x7F72;</h2>
<p>&#x8FD9;&#x5E94;&#x8BE5;&#x662F;&#x90E8;&#x7F72;&#x5E94;&#x7528;&#x7684;&#x6700;&#x65B9;&#x4FBF;&#x4E5F;&#x662F;&#x6700;&#x8282;&#x7701;&#x65F6;&#x95F4;&#x7684;&#x65B9;&#x5F0F;&#x4E86;&#x3002;&#x5728;&#x6700;&#x8FD1;&#x7684;&#x4E00;&#x6B21;&#x7248;&#x672C;&#x66F4;&#x65B0;<a href="https://github.com/tikazyq/crawlab/releases/tag/v0.2.3" target="_blank">v0.2.3</a>&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x53D1;&#x5E03;&#x4E86;Docker&#x529F;&#x80FD;&#xFF0C;&#x8BA9;&#x5927;&#x5BB6;&#x53EF;&#x4EE5;&#x5229;&#x7528;Docker&#x6765;&#x8F7B;&#x677E;&#x90E8;&#x7F72;Crawlab&#x3002;&#x4E0B;&#x9762;&#x5C06;&#x4E00;&#x6B65;&#x4E00;&#x6B65;&#x4ECB;&#x7ECD;&#x5982;&#x4F55;&#x4F7F;&#x7528;Docker&#x6765;&#x90E8;&#x7F72;Crawlab&#x3002;</p>
<p>&#x5BF9;Docker&#x4E0D;&#x4E86;&#x89E3;&#x7684;&#x5F00;&#x53D1;&#x8005;&#xFF0C;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x4E00;&#x4E0B;&#x8FD9;&#x7BC7;&#x6587;&#x7AE0;&#xFF08;<a href="https://juejin.im/post/5c2c69cee51d450d9707236e" target="_blank">9102 &#x5E74;&#x4E86;&#xFF0C;&#x5B66;&#x70B9; Docker &#x77E5;&#x8BC6;</a>&#xFF09;&#x505A;&#x8FDB;&#x4E00;&#x6B65;&#x4E86;&#x89E3;&#x3002;&#x7B80;&#x5355;&#x6765;&#x8BF4;&#xFF0C;Docker&#x53EF;&#x4EE5;&#x5229;&#x7528;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x955C;&#x50CF;&#x5E2E;&#x52A9;&#x6784;&#x5EFA;&#x4E00;&#x4E9B;&#x5E38;&#x7528;&#x7684;&#x670D;&#x52A1;&#x548C;&#x5E94;&#x7528;&#xFF0C;&#x4F8B;&#x5982;Nginx&#x3001;MongoDB&#x3001;Redis&#x7B49;&#x7B49;&#x3002;&#x7528;Docker&#x8FD0;&#x884C;&#x4E00;&#x4E2A;MongoDB&#x670D;&#x52A1;&#x4EC5;&#x9700;<code>docker run -d --name mongo -p 27017:27017 mongo</code>&#x4E00;&#x884C;&#x547D;&#x4EE4;&#x3002;&#x5982;&#x4F55;&#x5B89;&#x88C5;Docker&#x8DDF;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x6709;&#x5173;&#xFF0C;&#x8FD9;&#x91CC;&#x5C31;&#x4E0D;&#x5C55;&#x5F00;&#x8BB2;&#x4E86;&#xFF0C;&#x9700;&#x8981;&#x7684;&#x540C;&#x5B66;&#x81EA;&#x884C;&#x767E;&#x5EA6;&#x4E00;&#x4E0B;&#x76F8;&#x5173;&#x6559;&#x7A0B;&#x3002;</p>
<h3 id="&#x4E0B;&#x8F7D;&#x955C;&#x50CF;">&#x4E0B;&#x8F7D;&#x955C;&#x50CF;</h3>
<p>&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x5728;<a href="https://hub.docker.com/r/tikazyq/crawlab" target="_blank">DockerHub</a>&#x4E0A;&#x6784;&#x5EFA;&#x4E86;Crawlab&#x7684;&#x955C;&#x50CF;&#xFF0C;&#x5F00;&#x53D1;&#x8005;&#x53EA;&#x9700;&#x8981;&#x5C06;&#x5176;pull&#x4E0B;&#x6765;&#x4F7F;&#x7528;&#x3002;&#x5728;pull &#x955C;&#x50CF;&#x4E4B;&#x524D;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4E00;&#x4E0B;&#x955C;&#x50CF;&#x6E90;&#x3002;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x5728;&#x5899;&#x5185;&#xFF0C;&#x4F7F;&#x7528;&#x539F;&#x6709;&#x7684;&#x955C;&#x50CF;&#x6E90;&#x901F;&#x5EA6;&#x975E;&#x5E38;&#x611F;&#x4EBA;&#xFF0C;&#x56E0;&#x6B64;&#x5C06;&#x4F7F;&#x7528;DockerHub&#x5728;&#x56FD;&#x5185;&#x7684;&#x52A0;&#x901F;&#x5668;&#x3002;&#x521B;&#x5EFA;<code>/etc/docker/daemon.json</code>&#x6587;&#x4EF6;&#xFF0C;&#x5728;&#x5176;&#x4E2D;&#x8F93;&#x5165;&#x5982;&#x4E0B;&#x5185;&#x5BB9;&#x3002;</p>
<pre><code class="lang-json">{
<span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://registry.docker-cn.com&quot;</span>]
}
</code></pre>
<p>&#x8FD9;&#x6837;&#x7684;&#x8BDD;&#xFF0C;pull&#x955C;&#x50CF;&#x7684;&#x901F;&#x5EA6;&#x4F1A;&#x6BD4;&#x4E0D;&#x6539;&#x53D8;&#x955C;&#x50CF;&#x6E90;&#x7684;&#x901F;&#x5EA6;&#x5FEB;&#x5F88;&#x591A;&#x3002;</p>
<p>&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x5C06;Crawlab&#x7684;&#x955C;&#x50CF;&#x4E0B;&#x8F7D;&#x4E0B;&#x6765;&#x3002;&#x955C;&#x50CF;&#x5927;&#x5C0F;&#x5927;&#x6982;&#x5728;&#x51E0;&#x767E;&#x5146;&#xFF0C;&#x56E0;&#x6B64;&#x4E0B;&#x8F7D;&#x9700;&#x8981;&#x51E0;&#x5206;&#x949F;&#x65F6;&#x95F4;&#x3002;</p>
<pre><code class="lang-bash">docker pull tikazyq/crawlab:latest
</code></pre>
<h3 id="&#x66F4;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x66F4;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<p>&#x62F7;&#x8D1D;&#x4E00;&#x4EFD;&#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>./crawlab/config/config.py</code>&#x4EE5;&#x53CA;&#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>./frontend/.env.production</code>&#x5230;&#x67D0;&#x4E00;&#x4E2A;&#x5730;&#x65B9;&#x3002;&#x4F8B;&#x5982;&#x6211;&#x7684;&#x4F8B;&#x5B50;&#xFF0C;&#x5206;&#x522B;&#x4E3A;<code>/home/yeqing/config.py</code>&#x548C;<code>/home/yeqing/.env.production</code>&#x3002;</p>
<p>&#x66F4;&#x6539;&#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>config.py</code>&#xFF0C;&#x5C06;MongoDB&#x3001;Redis&#x7684;&#x6307;&#x5411;IP&#x66F4;&#x6539;&#x4E3A;&#x81EA;&#x5DF1;&#x6570;&#x636E;&#x7684;&#x503C;&#x3002;&#x6CE8;&#x610F;&#xFF0C;&#x5BB9;&#x5668;&#x4E2D;&#x5BF9;&#x5E94;&#x7684;&#x5BBF;&#x4E3B;&#x673A;&#x7684;IP&#x5730;&#x5740;&#x4E0D;&#x662F;<code>localhost</code>&#xFF0C;&#x800C;&#x662F;<code>172.17.0.1</code>&#xFF08;&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;network&#x6765;&#x505A;&#xFF0C;&#x53EA;&#x662F;&#x7A0D;&#x5FAE;&#x9EBB;&#x70E6;&#x4E00;&#x4E9B;&#xFF09;&#x3002;&#x66F4;&#x6539;&#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>.env.production</code>&#xFF0C;&#x5C06;API&#x5730;&#x5740;<code>VUE_APP_BASE_URL</code>&#x66F4;&#x6539;&#x4E3A;&#x5BBF;&#x4E3B;&#x673A;&#x6240;&#x5728;&#x7684;IP&#x5730;&#x5740;&#xFF0C;&#x4F8B;&#x5982;<code>http://192.168.0.8:8000</code>&#xFF0C;&#x8FD9;&#x5C06;&#x662F;&#x524D;&#x7AEF;&#x8C03;&#x7528;API&#x4F1A;&#x7528;&#x5230;&#x7684;URL&#x3002;</p>
<h3 id="&#x8FD0;&#x884C;docker&#x5BB9;&#x5668;">&#x8FD0;&#x884C;Docker&#x5BB9;&#x5668;</h3>
<p>&#x66F4;&#x6539;&#x597D;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E4B;&#x540E;&#xFF0C;&#x63A5;&#x4E0B;&#x6765;&#x5C31;&#x662F;&#x8FD0;&#x884C;&#x5BB9;&#x5668;&#x4E86;&#x3002;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x6765;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x3002;</p>
<pre><code class="lang-bash">docker run <span class="hljs-_">-d</span> --rm --name crawlab \
-p 8080:8080 \
-p 8000:8000 \
-v /home/yeqing/.env.production:/opt/crawlab/frontend/.env.production \
-v /home/yeqing/config.py:/opt/crawlab/crawlab/config/config.py \
tikazyq/crawlab master
</code></pre>
<p>&#x5176;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x6620;&#x5C04;&#x4E86;8080&#x7AEF;&#x53E3;&#xFF08;Nginx&#x524D;&#x7AEF;&#x9759;&#x6001;&#x6587;&#x4EF6;&#xFF09;&#x4EE5;&#x53CA;8000&#x7AEF;&#x53E3;&#xFF08;&#x540E;&#x7AEF;API&#xFF09;&#x5230;&#x5BBF;&#x4E3B;&#x673A;&#x3002;&#x53E6;&#x5916;&#x8FD8;&#x5C06;&#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>/home/yeqing/.env.production</code>&#x548C;&#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;<code>/home/yeqing/config.py</code>&#x6620;&#x5C04;&#x5230;&#x4E86;&#x5BB9;&#x5668;&#x76F8;&#x5E94;&#x7684;&#x76EE;&#x5F55;&#x4E0B;&#x3002;&#x4F20;&#x5165;&#x53C2;&#x6570;<code>master</code>&#x662F;&#x4EE3;&#x8868;&#x8BE5;&#x542F;&#x52A8;&#x65B9;&#x5F0F;&#x4E3A;&#x4E3B;&#x673A;&#x542F;&#x52A8;&#x6A21;&#x5F0F;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x6240;&#x6709;&#x670D;&#x52A1;&#xFF08;&#x524D;&#x7AEF;&#x3001;Api&#x3001;Flower&#x3001;Worker&#xFF09;&#x90FD;&#x4F1A;&#x542F;&#x52A8;&#x3002;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x6A21;&#x5F0F;&#x662F;<code>worker</code>&#x6A21;&#x5F0F;&#xFF0C;&#x53EA;&#x4F1A;&#x542F;&#x52A8;&#x5FC5;&#x8981;&#x7684;Api&#x548C;Worker&#x670D;&#x52A1;&#xFF0C;&#x8FD9;&#x4E2A;&#x5BF9;&#x4E8E;&#x5206;&#x5E03;&#x5F0F;&#x90E8;&#x7F72;&#x6BD4;&#x8F83;&#x6709;&#x7528;&#x3002;&#x7B49;&#x5F85;&#x5927;&#x7EA6;20-30&#x79D2;&#x7684;&#x65F6;&#x95F4;&#x6765;build&#x524D;&#x7AEF;&#x9759;&#x6001;&#x6587;&#x4EF6;&#xFF0C;&#x4E4B;&#x540E;&#x5C31;&#x53EF;&#x4EE5;&#x6253;&#x5F00;Crawlab&#x754C;&#x9762;&#x5730;&#x5740;&#x5730;&#x5740;&#x770B;&#x5230;&#x754C;&#x9762;&#x4E86;&#x3002;&#x754C;&#x9762;&#x5730;&#x5740;&#x9ED8;&#x8BA4;&#x4E3A;<code>http://localhost:8080</code>&#x3002;</p>
<p><img src="https://user-gold-cdn.xitu.io/2019/6/12/16b4c3ed5dcd6cfc?w=2532&amp;h=1300&amp;f=png&amp;s=146531" alt=""></p>
<h3 id="docker-compose">Docker-Compose</h3>
<p>&#x5F53;&#x7136;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;<code>docker-compose</code>&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x90E8;&#x7F72;&#x3002;<code>docker-compose</code>&#x662F;&#x4E00;&#x4E2A;&#x96C6;&#x7FA4;&#x7BA1;&#x7406;&#x65B9;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x5229;&#x7528;&#x540D;&#x4E3A;<code>docker-compose.yml</code>&#x7684;<code>yaml</code>&#x6587;&#x4EF6;&#x6765;&#x5B9A;&#x4E49;&#x9700;&#x8981;&#x542F;&#x52A8;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x4E2A;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#xFF08;&#x901A;&#x5E38;&#xFF09;&#x662F;&#x591A;&#x4E2A;&#x7684;&#x3002;Crawlab&#x7684;<code>docker-compose.yml</code>&#x5B9A;&#x4E49;&#x5982;&#x4E0B;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">version:</span> <span class="hljs-string">&apos;3.3&apos;</span>
<span class="hljs-attr">services:</span>
<span class="hljs-attr"> master:</span>
<span class="hljs-attr"> image:</span> tikazyq/crawlab:latest
<span class="hljs-attr"> container_name:</span> crawlab
<span class="hljs-attr"> volumns:</span>
<span class="hljs-bullet"> -</span> /home/yeqing/config.py:/opt/crawlab/crawlab/config/config.py <span class="hljs-comment"># &#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-bullet"> -</span> /home/yeqing/.env.production:/opt/crawlab/frontend/.env.production <span class="hljs-comment"># &#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8080:8080&quot;</span> <span class="hljs-comment"># nginx</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8000:8000&quot;</span> <span class="hljs-comment"># app</span>
<span class="hljs-attr"> depends_on:</span>
<span class="hljs-bullet"> -</span> mongo
<span class="hljs-bullet"> -</span> redis
<span class="hljs-attr"> entrypoint:</span>
<span class="hljs-bullet"> -</span> /bin/sh
<span class="hljs-bullet"> -</span> /opt/crawlab/docker_init.sh
<span class="hljs-bullet"> -</span> master
<span class="hljs-attr"> mongo:</span>
<span class="hljs-attr"> image:</span> mongo:latest
<span class="hljs-attr"> restart:</span> always
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;27017:27017&quot;</span>
<span class="hljs-attr"> redis:</span>
<span class="hljs-attr"> image:</span> redis:latest
<span class="hljs-attr"> restart:</span> always
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;6379:6379&quot;</span>
</code></pre>
<p>&#x8FD9;&#x91CC;&#x5148;&#x5B9A;&#x4E49;&#x4E86;<code>master</code>&#x8282;&#x70B9;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;Crawlab&#x7684;&#x4E3B;&#x8282;&#x70B9;&#x3002;<code>master</code>&#x4F9D;&#x8D56;&#x4E8E;<code>mongo</code>&#x548C;<code>redis</code>&#x5BB9;&#x5668;&#xFF0C;&#x56E0;&#x6B64;&#x5728;&#x542F;&#x52A8;&#x4E4B;&#x524D;&#x4F1A;&#x540C;&#x65F6;&#x542F;&#x52A8;<code>mongo</code>&#x548C;<code>redis</code>&#x5BB9;&#x5668;&#x3002;&#x8FD9;&#x6837;&#x5C31;&#x4E0D;&#x9700;&#x8981;&#x5355;&#x72EC;&#x914D;&#x7F6E;<code>mongo</code>&#x548C;<code>redis</code>&#x670D;&#x52A1;&#x4E86;&#xFF0C;&#x5927;&#x5927;&#x8282;&#x7701;&#x4E86;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x7684;&#x65F6;&#x95F4;&#x3002;</p>
<p>&#x5B89;&#x88C5;<code>docker-compose</code>&#x4E5F;&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x5927;&#x5BB6;&#x53BB;&#x7F51;&#x4E0A;&#x767E;&#x5EA6;&#x4E00;&#x4E0B;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<p>&#x5B89;&#x88C5;&#x5B8C;<code>docker-compose</code>&#x548C;&#x5B9A;&#x4E49;&#x597D;<code>docker-compose.yml</code>&#x540E;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x5C31;&#x53EF;&#x4EE5;&#x542F;&#x52A8;Crawlab&#x3002;</p>
<pre><code class="lang-bash">docker-compose up
</code></pre>
<p>&#x540C;&#x6837;&#xFF0C;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x8F93;&#x5165;<code>http://localhost:8080</code>&#x5C31;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x754C;&#x9762;&#x3002;</p>
<h3 id="&#x591A;&#x8282;&#x70B9;&#x6A21;&#x5F0F;">&#x591A;&#x8282;&#x70B9;&#x6A21;&#x5F0F;</h3>
<p><code>docker-compose</code>&#x7684;&#x65B9;&#x5F0F;&#x5F88;&#x9002;&#x5408;&#x591A;&#x8282;&#x70B9;&#x90E8;&#x7F72;&#xFF0C;&#x5728;&#x539F;&#x6709;&#x7684;<code>master</code>&#x57FA;&#x7840;&#x4E0A;&#x589E;&#x52A0;&#x51E0;&#x4E2A;<code>worker</code>&#x8282;&#x70B9;&#xFF0C;&#x8FBE;&#x5230;&#x591A;&#x8282;&#x70B9;&#x90E8;&#x7F72;&#x7684;&#x76EE;&#x7684;&#x3002;&#x5C06;<code>docker-compose.yml</code>&#x66F4;&#x6539;&#x4E3A;&#x5982;&#x4E0B;&#x5185;&#x5BB9;&#x3002;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">version:</span> <span class="hljs-string">&apos;3.3&apos;</span>
<span class="hljs-attr">services:</span>
<span class="hljs-attr"> master:</span>
<span class="hljs-attr"> image:</span> tikazyq/crawlab:latest
<span class="hljs-attr"> container_name:</span> crawlab
<span class="hljs-attr"> volumns:</span>
<span class="hljs-bullet"> -</span> /home/yeqing/config.master.py:/opt/crawlab/crawlab/config/config.py <span class="hljs-comment"># &#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-bullet"> -</span> /home/yeqing/.env.production.master:/opt/crawlab/frontend/.env.production <span class="hljs-comment"># &#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8080:8080&quot;</span> <span class="hljs-comment"># nginx</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8000:8000&quot;</span> <span class="hljs-comment"># app</span>
<span class="hljs-attr"> depends_on:</span>
<span class="hljs-bullet"> -</span> mongo
<span class="hljs-bullet"> -</span> redis
<span class="hljs-attr"> entrypoint:</span>
<span class="hljs-bullet"> -</span> /bin/sh
<span class="hljs-bullet"> -</span> /opt/crawlab/docker_init.sh
<span class="hljs-bullet"> -</span> master
<span class="hljs-attr"> worker1:</span>
<span class="hljs-attr"> image:</span> tikazyq/crawlab:latest
<span class="hljs-attr"> volumns:</span>
<span class="hljs-bullet"> -</span> /home/yeqing/config.worker.py:/opt/crawlab/crawlab/config/config.py <span class="hljs-comment"># &#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-bullet"> -</span> /home/yeqing/.env.production.worker:/opt/crawlab/frontend/.env.production <span class="hljs-comment"># &#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8001:8000&quot;</span> <span class="hljs-comment"># app</span>
<span class="hljs-attr"> depends_on:</span>
<span class="hljs-bullet"> -</span> mongo
<span class="hljs-bullet"> -</span> redis
<span class="hljs-attr"> entrypoint:</span>
<span class="hljs-bullet"> -</span> /bin/sh
<span class="hljs-bullet"> -</span> /opt/crawlab/docker_init.sh
<span class="hljs-bullet"> -</span> worker
<span class="hljs-attr"> worker2:</span>
<span class="hljs-attr"> image:</span> tikazyq/crawlab:latest
<span class="hljs-attr"> volumns:</span>
<span class="hljs-bullet"> -</span> /home/yeqing/config.worker.py:/opt/crawlab/crawlab/config/config.py <span class="hljs-comment"># &#x540E;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-bullet"> -</span> /home/yeqing/.env.production.worker:/opt/crawlab/frontend/.env.production <span class="hljs-comment"># &#x524D;&#x7AEF;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;8002:8000&quot;</span> <span class="hljs-comment"># app</span>
<span class="hljs-attr"> depends_on:</span>
<span class="hljs-bullet"> -</span> mongo
<span class="hljs-bullet"> -</span> redis
<span class="hljs-attr"> entrypoint:</span>
<span class="hljs-bullet"> -</span> /bin/sh
<span class="hljs-bullet"> -</span> /opt/crawlab/docker_init.sh
<span class="hljs-bullet"> -</span> worker
<span class="hljs-attr"> mongo:</span>
<span class="hljs-attr"> image:</span> mongo:latest
<span class="hljs-attr"> restart:</span> always
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;27017:27017&quot;</span>
<span class="hljs-attr"> redis:</span>
<span class="hljs-attr"> image:</span> redis:latest
<span class="hljs-attr"> restart:</span> always
<span class="hljs-attr"> ports:</span>
<span class="hljs-bullet"> -</span> <span class="hljs-string">&quot;6379:6379&quot;</span>
</code></pre>
<p>&#x8FD9;&#x91CC;&#x542F;&#x52A8;&#x4E86;&#x591A;&#x589E;&#x52A0;&#x4E86;&#x4E24;&#x4E2A;<code>worker</code>&#x8282;&#x70B9;&#xFF0C;&#x4EE5;<code>worker</code>&#x6A21;&#x5F0F;&#x542F;&#x52A8;&#x3002;&#x8FD9;&#x6837;&#xFF0C;&#x591A;&#x8282;&#x70B9;&#x90E8;&#x7F72;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5206;&#x5E03;&#x5F0F;&#x90E8;&#x7F72;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x3002;</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="./" class="navigation navigation-prev " aria-label="Previous page: 安装Crawlab">
<i class="fa fa-angle-left"></i>
</a>
<a href="Direct.html" class="navigation navigation-next " aria-label="Next page: 直接部署">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Docker","level":"1.2.1","depth":2,"next":{"title":"直接部署","level":"1.2.2","depth":2,"path":"Installation/Direct.md","ref":"Installation/Direct.md","articles":[]},"previous":{"title":"安装Crawlab","level":"1.2","depth":1,"path":"Installation/README.md","ref":"Installation/README.md","articles":[{"title":"Docker","level":"1.2.1","depth":2,"path":"Installation/Docker.md","ref":"Installation/Docker.md","articles":[]},{"title":"直接部署","level":"1.2.2","depth":2,"path":"Installation/Direct.md","ref":"Installation/Direct.md","articles":[]},{"title":"预览模式","level":"1.2.3","depth":2,"path":"Installation/Preview.md","ref":"Installation/Preview.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Installation/Docker.md","mtime":"2019-06-16T03:07:59.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-16T14:03:57.361Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>

View File

@@ -0,0 +1,588 @@
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>预览模式 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="../Usage/" />
<link rel="prev" href="Direct.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
Crawlab简介
</a>
</li>
<li class="chapter " data-level="1.2" data-path="./">
<a href="./">
安装Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="Docker.html">
<a href="Docker.html">
Docker
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="Direct.html">
<a href="Direct.html">
直接部署
</a>
</li>
<li class="chapter active" data-level="1.2.3" data-path="Preview.html">
<a href="Preview.html">
预览模式
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="../Usage/">
<a href="../Usage/">
使用Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="../Usage/Node/">
<a href="../Usage/Node/">
节点
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1.1" data-path="../Usage/Node/View.html">
<a href="../Usage/Node/View.html">
查看节点列表
</a>
</li>
<li class="chapter " data-level="1.3.1.2" data-path="../Usage/Node/Edit.html">
<a href="../Usage/Node/Edit.html">
修改节点信息
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2" data-path="../Usage/Spider/">
<a href="../Usage/Spider/">
爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1" data-path="../Usage/Spider/Create.html">
<a href="../Usage/Spider/Create.html">
创建爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1.1" data-path="../Usage/Spider/CustomizedSpider.html">
<a href="../Usage/Spider/CustomizedSpider.html">
自定义爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.1.2" data-path="../Usage/Spider/ConfigurableSpider.html">
<a href="../Usage/Spider/ConfigurableSpider.html">
可配置爬虫
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2.2" data-path="../Usage/Spider/Deploy.html">
<a href="../Usage/Spider/Deploy.html">
部署爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.3" data-path="../Usage/Spider/Run.html">
<a href="../Usage/Spider/Run.html">
运行爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.4" data-path="../Usage/Spider/Analytics.html">
<a href="../Usage/Spider/Analytics.html">
统计数据
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.3" data-path="../Usage/Task/">
<a href="../Usage/Task/">
任务
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.3.1" data-path="../Usage/Task/View.html">
<a href="../Usage/Task/View.html">
查看任务
</a>
</li>
<li class="chapter " data-level="1.3.3.2" data-path="../Usage/Task/Action.html">
<a href="../Usage/Task/Action.html">
操作任务
</a>
</li>
<li class="chapter " data-level="1.3.3.3" data-path="../Usage/Task/DownloadResults.html">
<a href="../Usage/Task/DownloadResults.html">
下载结果
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.4" data-path="../Usage/Schedule/">
<a href="../Usage/Schedule/">
定时任务
</a>
</li>
<li class="chapter " data-level="1.3.5" data-path="../Usage/Site/">
<a href="../Usage/Site/">
网站
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="../Architecture/">
<a href="../Architecture/">
架构
</a>
</li>
<li class="chapter " data-level="1.5" data-path="../Examples/">
<a href="../Examples/">
样例
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../Examples/ScrapyIntegration.html">
<a href="../Examples/ScrapyIntegration.html">
与Scrapy集成
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >预览模式</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h2 id="&#x9884;&#x89C8;&#x6A21;&#x5F0F;">&#x9884;&#x89C8;&#x6A21;&#x5F0F;</h2>
<p><strong>&#x9884;&#x89C8;&#x6A21;&#x5F0F;</strong>&#x662F;&#x4E00;&#x79CD;&#x8BA9;&#x7528;&#x6237;&#x6BD4;&#x8F83;&#x5FEB;&#x7684;&#x4E0A;&#x624B;&#x7684;&#x4E00;&#x79CD;&#x90E8;&#x7F72;&#x6A21;&#x5F0F;&#x3002;&#x8DDF;<strong>&#x76F4;&#x63A5;&#x90E8;&#x7F72;</strong>&#x7C7B;&#x4F3C;&#xFF0C;&#x4F46;&#x4E0D;&#x7528;&#x7ECF;&#x8FC7;<code>&#x6784;&#x5EFA;</code>&#x3001;<code>nginx</code>&#x548C;<code>&#x542F;&#x52A8;&#x670D;&#x52A1;</code>&#x7684;&#x6B65;&#x9AA4;&#x3002;&#x5728;&#x542F;&#x52A8;&#x65F6;&#x53EA;&#x9700;&#x8981;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;&#x76F8;&#x8F83;&#x4E8E;&#x76F4;&#x63A5;&#x90E8;&#x7F72;&#x6765;&#x8BF4;&#x65B9;&#x4FBF;&#x4E00;&#x4E9B;&#x3002;</p>
<pre><code class="lang-bash">python manage.py serve
</code></pre>
<p>&#x8BE5;&#x6A21;&#x5F0F;&#x540C;&#x6837;&#x4F1A;&#x542F;&#x52A8;3&#x4E2A;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x548C;1&#x4E2A;&#x524D;&#x7AEF;&#x670D;&#x52A1;&#x3002;&#x524D;&#x7AEF;&#x670D;&#x52A1;&#x662F;&#x901A;&#x8FC7;<code>npm run serve</code>&#x6765;&#x8FDB;&#x884C;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x662F;&#x5F00;&#x53D1;&#x8005;&#x6A21;&#x5F0F;&#x3002;<strong>&#x6CE8;&#x610F;&#xFF1A;&#x5F3A;&#x70C8;&#x4E0D;&#x5EFA;&#x8BAE;&#x5728;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x4E2D;&#x7528;&#x9884;&#x89C8;&#x6A21;&#x5F0F;</strong>&#x3002;&#x9884;&#x89C8;&#x6A21;&#x5F0F;&#x53EA;&#x662F;&#x8BA9;&#x5F00;&#x53D1;&#x8005;&#x5FEB;&#x901F;&#x4F53;&#x9A8C;Crawlab&#x4EE5;&#x53CA;&#x8C03;&#x8BD5;&#x4EE3;&#x7801;&#x95EE;&#x9898;&#x7684;&#x4E00;&#x79CD;&#x65B9;&#x5F0F;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x7528;&#x4F5C;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x90E8;&#x7F72;&#x7684;&#x3002;</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="Direct.html" class="navigation navigation-prev " aria-label="Previous page: 直接部署">
<i class="fa fa-angle-left"></i>
</a>
<a href="../Usage/" class="navigation navigation-next " aria-label="Next page: 使用Crawlab">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"预览模式","level":"1.2.3","depth":2,"next":{"title":"使用Crawlab","level":"1.3","depth":1,"path":"Usage/README.md","ref":"Usage/README.md","articles":[{"title":"节点","level":"1.3.1","depth":2,"path":"Usage/Node/README.md","ref":"Usage/Node/README.md","articles":[{"title":"查看节点列表","level":"1.3.1.1","depth":3,"path":"Usage/Node/View.md","ref":"Usage/Node/View.md","articles":[]},{"title":"修改节点信息","level":"1.3.1.2","depth":3,"path":"Usage/Node/Edit.md","ref":"Usage/Node/Edit.md","articles":[]}]},{"title":"爬虫","level":"1.3.2","depth":2,"path":"Usage/Spider/README.md","ref":"Usage/Spider/README.md","articles":[{"title":"创建爬虫","level":"1.3.2.1","depth":3,"path":"Usage/Spider/Create.md","ref":"Usage/Spider/Create.md","articles":[{"title":"自定义爬虫","level":"1.3.2.1.1","depth":4,"path":"Usage/Spider/CustomizedSpider.md","ref":"Usage/Spider/CustomizedSpider.md","articles":[]},{"title":"可配置爬虫","level":"1.3.2.1.2","depth":4,"path":"Usage/Spider/ConfigurableSpider.md","ref":"Usage/Spider/ConfigurableSpider.md","articles":[]}]},{"title":"部署爬虫","level":"1.3.2.2","depth":3,"path":"Usage/Spider/Deploy.md","ref":"Usage/Spider/Deploy.md","articles":[]},{"title":"运行爬虫","level":"1.3.2.3","depth":3,"path":"Usage/Spider/Run.md","ref":"Usage/Spider/Run.md","articles":[]},{"title":"统计数据","level":"1.3.2.4","depth":3,"path":"Usage/Spider/Analytics.md","ref":"Usage/Spider/Analytics.md","articles":[]}]},{"title":"任务","level":"1.3.3","depth":2,"path":"Usage/Task/README.md","ref":"Usage/Task/README.md","articles":[{"title":"查看任务","level":"1.3.3.1","depth":3,"path":"Usage/Task/View.md","ref":"Usage/Task/View.md","articles":[]},{"title":"操作任务","level":"1.3.3.2","depth":3,"path":"Usage/Task/Action.md","ref":"Usage/Task/Action.md","articles":[]},{"title":"下载结果","level":"1.3.3.3","depth":3,"path":"Usage/Task/DownloadResults.md","ref":"Usage/Task/DownloadResults.md","articles":[]}]},{"title":"定时任务","level":"1.3.4","depth":2,"path":"Usage/Schedule/README.md","ref":"Usage/Schedule/README.md","articles":[]},{"title":"网站","level":"1.3.5","depth":2,"path":"Usage/Site/README.md","ref":"Usage/Site/README.md","articles":[]}]},"previous":{"title":"直接部署","level":"1.2.2","depth":2,"path":"Installation/Direct.md","ref":"Installation/Direct.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Installation/Preview.md","mtime":"2019-06-16T03:19:51.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-16T14:03:57.361Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>

View File

@@ -0,0 +1,589 @@
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>安装Crawlab · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="Docker.html" />
<link rel="prev" href="../" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
Crawlab简介
</a>
</li>
<li class="chapter active" data-level="1.2" data-path="./">
<a href="./">
安装Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="Docker.html">
<a href="Docker.html">
Docker
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="Direct.html">
<a href="Direct.html">
直接部署
</a>
</li>
<li class="chapter " data-level="1.2.3" data-path="Preview.html">
<a href="Preview.html">
预览模式
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="../Usage/">
<a href="../Usage/">
使用Crawlab
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="../Usage/Node/">
<a href="../Usage/Node/">
节点
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1.1" data-path="../Usage/Node/View.html">
<a href="../Usage/Node/View.html">
查看节点列表
</a>
</li>
<li class="chapter " data-level="1.3.1.2" data-path="../Usage/Node/Edit.html">
<a href="../Usage/Node/Edit.html">
修改节点信息
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2" data-path="../Usage/Spider/">
<a href="../Usage/Spider/">
爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1" data-path="../Usage/Spider/Create.html">
<a href="../Usage/Spider/Create.html">
创建爬虫
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.2.1.1" data-path="../Usage/Spider/CustomizedSpider.html">
<a href="../Usage/Spider/CustomizedSpider.html">
自定义爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.1.2" data-path="../Usage/Spider/ConfigurableSpider.html">
<a href="../Usage/Spider/ConfigurableSpider.html">
可配置爬虫
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.2.2" data-path="../Usage/Spider/Deploy.html">
<a href="../Usage/Spider/Deploy.html">
部署爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.3" data-path="../Usage/Spider/Run.html">
<a href="../Usage/Spider/Run.html">
运行爬虫
</a>
</li>
<li class="chapter " data-level="1.3.2.4" data-path="../Usage/Spider/Analytics.html">
<a href="../Usage/Spider/Analytics.html">
统计数据
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.3" data-path="../Usage/Task/">
<a href="../Usage/Task/">
任务
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.3.1" data-path="../Usage/Task/View.html">
<a href="../Usage/Task/View.html">
查看任务
</a>
</li>
<li class="chapter " data-level="1.3.3.2" data-path="../Usage/Task/Action.html">
<a href="../Usage/Task/Action.html">
操作任务
</a>
</li>
<li class="chapter " data-level="1.3.3.3" data-path="../Usage/Task/DownloadResults.html">
<a href="../Usage/Task/DownloadResults.html">
下载结果
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3.4" data-path="../Usage/Schedule/">
<a href="../Usage/Schedule/">
定时任务
</a>
</li>
<li class="chapter " data-level="1.3.5" data-path="../Usage/Site/">
<a href="../Usage/Site/">
网站
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="../Architecture/">
<a href="../Architecture/">
架构
</a>
</li>
<li class="chapter " data-level="1.5" data-path="../Examples/">
<a href="../Examples/">
样例
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../Examples/ScrapyIntegration.html">
<a href="../Examples/ScrapyIntegration.html">
与Scrapy集成
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >安装Crawlab</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<p>&#x672C;&#x5C0F;&#x8282;&#x5C06;&#x4ECB;&#x7ECD;&#x4E09;&#x79CD;&#x5B89;&#x88C5;Docker&#x7684;&#x65B9;&#x5F0F;:</p>
<ol>
<li><a href="Docker.html">Docker</a></li>
<li><a href="Direct.html">&#x76F4;&#x63A5;&#x90E8;&#x7F72;</a></li>
<li><a href="Preview.html">&#x9884;&#x89C8;&#x6A21;&#x5F0F;</a></li>
</ol>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="../" class="navigation navigation-prev " aria-label="Previous page: Crawlab简介">
<i class="fa fa-angle-left"></i>
</a>
<a href="Docker.html" class="navigation navigation-next " aria-label="Next page: Docker">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"安装Crawlab","level":"1.2","depth":1,"next":{"title":"Docker","level":"1.2.1","depth":2,"path":"Installation/Docker.md","ref":"Installation/Docker.md","articles":[]},"previous":{"title":"Crawlab简介","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Installation/README.md","mtime":"2019-06-16T03:12:38.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-06-16T14:03:57.361Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>