-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
736 lines (599 loc) · 23.6 KB
/
index.html
File metadata and controls
736 lines (599 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="default">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
<link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-inner" class="inner">
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="搜索"></a>
</nav>
<div id="search-form-wrap">
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"></button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
</div>
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">首页</a>
<a class="main-nav-link" href="/archives">归档</a>
<a class="main-nav-link" href="/about">关于</a>
</nav>
</div>
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">Hexo</a>
</h1>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-kolla-deploy" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/05/10/kolla-deploy/" class="article-date">
<time datetime="2018-05-10T00:57:56.000Z" itemprop="datePublished">2018-05-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2018/05/10/kolla-deploy/">kolla deploy</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Table of Contents -->
<p>#openstack ocata版本部署</p>
<p>##部署目录</p>
<ul>
<li>1 准备硬件环境及规划</li>
<li>2 安装及配置运维节点</li>
<li>3 pxe安装控制、计算等节点操作系统 </li>
<li>4 配置控制、计算等节点 </li>
<li>5 配置kolla-ansible</li>
<li>6 openstack 完成安装初始化</li>
</ul>
<p>##部署过程</p>
<p>###硬件准备及基础规划<br>*1.1 服务器上架<br>根据服务器外部标识【序列号】确定服务器所在机柜位置生成服务器物理位置对应规划表</p>
<table>
<thead>
<tr>
<th>机柜1</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>服务规划</td>
<td>服务器序列号</td>
<td>最低内存要求</td>
</tr>
<tr>
<td>运维节点</td>
<td>99E2183</td>
<td>8GB</td>
</tr>
<tr>
<td>计算节点01</td>
<td>99C4945</td>
<td>8GB</td>
</tr>
<tr>
<td>控制节点01</td>
<td>99C2672</td>
<td>8GB</td>
</tr>
<tr>
<td>控制节点02</td>
<td>99AN208</td>
<td>8GB</td>
</tr>
<tr>
<td>控制节点03</td>
<td>99E1968</td>
<td>8GB</td>
</tr>
</tbody>
</table>
<p>1.2 服务器网络配置<br>服务器默认两块网卡 交换机配置</p>
<table>
<thead>
<tr>
<th>服务器</th>
<th>交换机端口</th>
<th>功能规划</th>
<th>vlanid</th>
<th>vlanip段</th>
</tr>
</thead>
<tbody>
<tr>
<td>网卡01</td>
<td>vlan1000 :access口</td>
<td>pxe</td>
<td>1000</td>
<td>192.168.93.0/24</td>
</tr>
<tr>
<td>网卡02</td>
<td>vlan1001,vlan1002,vlan1003:trunk 口</td>
<td>管理网,外部网络,存储网络</td>
<td>1001,1002,1003</td>
<td>192.168.94~96.0/24</td>
</tr>
</tbody>
</table>
<p>1.3 磁盘规划</p>
<table>
<thead>
<tr>
<th>机柜1</th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>服务规划</td>
<td>服务器序列号</td>
<td>系统盘最小大小*个数</td>
<td>ceph盘最小大小*个数</td>
<td>swift盘最小大小*个数</td>
</tr>
<tr>
<td>RAID推荐</td>
<td></td>
<td>raid1/raid5</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>运维节点</td>
<td>99E2183</td>
<td>200GB*2/3</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>计算节点01</td>
<td>99C4945</td>
<td>200GB*2/3</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>控制节点01</td>
<td>99C2672</td>
<td>200GB*2/3</td>
</tr>
<tr>
<td>控制节点02</td>
<td>99AN208</td>
<td>200GB*2/3</td>
</tr>
<tr>
<td>控制节点03</td>
<td>99E1968</td>
<td>200GB*2/3</td>
</tr>
<tr>
<td>存储节点01</td>
<td>——–</td>
<td>200GB*2/3</td>
<td>sdb*n 根据实际情况需要规划</td>
<td>sdc*n 根据实际情况需要规划</td>
</tr>
<tr>
<td>存储节点02</td>
<td>——–</td>
<td>200GB*2/3</td>
<td>sdb*n 根据实际情况需要规划</td>
<td>sdc*n 根据实际情况需要规划</td>
</tr>
<tr>
<td>存储节点02</td>
<td>——–</td>
<td>200GB*2/3</td>
<td>sdb*n 根据实际情况需要规划</td>
<td>sdc*n 根据实际情况需要规划</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>当前机房样例</th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>服务规划</td>
<td>服务器序列号</td>
<td>系统盘最小大小*个数</td>
<td>ceph盘最小大小*个数</td>
<td>swift盘最小大小*个数</td>
</tr>
<tr>
<td>RAID</td>
<td>N/A</td>
<td>无</td>
<td>无</td>
<td>无</td>
</tr>
<tr>
<td>运维节点</td>
<td>99E2183</td>
<td>200GB*1</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>计算节点01</td>
<td>99C4945</td>
<td>200GB*1</td>
<td>N/A</td>
<td>N/A</td>
</tr>
<tr>
<td>控制节点01【复用为存储节点01】</td>
<td>99C2672</td>
<td>200GB*1</td>
<td>sdb*1</td>
<td>sdc*1</td>
</tr>
<tr>
<td>控制节点02【复用为存储节点02】</td>
<td>99AN208</td>
<td>200GB*1</td>
<td>sdb*1</td>
<td>sdc*1</td>
</tr>
<tr>
<td>控制节点03【复用为存储节点03】</td>
<td>99E1968</td>
<td>200GB*1</td>
<td>sdb*1</td>
<td>N/A</td>
</tr>
</tbody>
</table>
<p>###运维节点安装及配置<br>2.1获取发行版iso及部署文档</p>
<blockquote>
<p><a href="ftp://dl.yihecloud.com/iaasos/YiheOS-4.0.2-20180424.iso" target="_blank" rel="noopener">ftp://dl.yihecloud.com/iaasos/YiheOS-4.0.2-20180424.iso</a><br><a href="ftp://dl.yihecloud.com/iaasos/" target="_blank" rel="noopener">ftp://dl.yihecloud.com/iaasos/</a> openstack ocata 版本部署文档v1.1.pdf<br>2.2从光盘安装<br>选择 install centos7.3 and kolla<br>快速按下tab键修改网络信息,根据提示按下e修改如下内容<br>ipaddr\=\<address>:\<netmask>:\<gateway>:\<hostname></hostname></gateway></netmask></address></p>
</blockquote>
<p>Ctrl+x 继续部署</p>
<blockquote>
<p>如果运维节点有多块盘部署操作系统需要选择部署盘<br>sda \<enter><br> <strong>20分钟左右部署完成</strong></enter></p>
</blockquote>
<p>2.3 完成操作系统部署后ssh登陆运维节点<br>默认账号密码</p>
<blockquote>
<p>root: Yihecloud</p>
</blockquote>
<p>###选择其他节点从pxe启动,开机开始所有节点操作系统部署<br>3.1pxe装机注意</p>
<blockquote>
<p>确保交换机网段,运维节点网络配置ok<br>pxe 节点过程如果系统有多块盘需要手动选择安装盘<br><strong>pxe时 bios配置默认第一启动项为硬盘,pxe时选择从pxe启动</strong> </p>
</blockquote>
<p>###openstack 部署前配置准备<br>4.1 根据前期规划修改全局配置<br><strong>全局配置文件</strong></p>
<blockquote>
<p>/root/tools/etc/pre_deploy/global.yml<br>根据规划修改内容如下:<br>pxe_net_card_name: “enp11s0f0” #第一块网卡名称<br>pxe_gateway: “192.168.93.1” #pxe网卡路由,用于跨网段访问<br>pxe_ip_segment: “192.168.93” #pxe网段<br>vlan_card_name: “enp11s0f1” #用于构建 管理、存储、网络 子接口的物理网卡名称</p>
</blockquote>
<blockquote>
<p>#admin<br>admin_vlanid: “1001” #管理网vlan id<br>admin_ip_segment: “192.168.94” #管理网段<br>admin_gateway: “192.168.94.1” #管理网网关</p>
</blockquote>
<blockquote>
<p>#external<br>external_vlanid: “1002” #外部网络vlan<br>external_ip_segment: “192.168.95” #外部网络网段</p>
</blockquote>
<blockquote>
<p>#storage<br>storage_vlanid: “1003” #存储网vlan id<br>storage_ip_segment: “192.168.96” #存储网段<br>swift_disk_list: “sdc” #用于swift用作swift的物理磁盘设备 多块盘格式为 “sdc sdd sdf”<br>ceph_disk_list: [sdb,] #用于ceph的物理磁盘设备 多块盘格式为 [sde,sdg,sdz]<br>swift_storage_networklist: “192.168.96.3 192.168.96.5” #swift 盘所在节点存储网络ip列表<br>swift_one_node_hostname: “control01” #swift 盘所在节点任意一个节点主机名,用于拷贝swift 相关配置到运维节点</p>
</blockquote>
<blockquote>
<p>#tunnel network for vm to vm<br>tunnel_vlanid: “1004”<br>tunnel_ip_segment: “192.168.97”</p>
</blockquote>
<blockquote>
<p>#Openstack custom configragtion</p>
</blockquote>
<blockquote>
<p>kolla_internal_vip_address: “192.168.94.111” #openstack 管理网段中 任意一个未被使用的ip<br>network_interface: “enp11s0f1.1001” #管理网对应网卡名<br>storage_interface: “enp11s0f1.1003” #存储网对应网卡名<br>cluster_interface: “enp11s0f1.1003” #存储网对应网卡名<br>tunnel_interface: “enp11s0f1.1004” #业务网对应网卡名<br>neutron_external_interface: “enp11s0f1.1002” #外部网络对应网卡名</p>
</blockquote>
<p>###操作系统部署前准备<br>5.1生成基础配置及规划表</p>
<blockquote>
<p>登录运维节点执行如下命令<br>cd /root/tools/;./prepare_deploy genrate_settings</p>
</blockquote>
<p>5.2 结合具体规划修改规划表文件</p>
<blockquote>
<p>规划表文件/root/tools/etc/pre_deploy/plan_table<br>服务器序列号 主机名 管理网ip 存储节点添加ceph标识 存储节点添加swift标识<br>99C2672 control01 192.168.94.3 ceph swift<br>99C4945 compute01 192.168.94.4<br>99AN208 control02 192.168.94.5 ceph swift<br>99E1968 control03 192.168.94.6 ceph</p>
</blockquote>
<p>5.3 基础配置检查</p>
<blockquote>
<p>cd /root/tools/;./prepare_deploy precheck_settings</p>
</blockquote>
<p>5.4pxe结束关闭pxe<br>登录运维节点执行</p>
<blockquote>
<p>bash /root/tools/pxe.sh stop<br>如有问题请修改问题再继续</p>
</blockquote>
<p>5.5 配置全局规划文件<br><strong>全局规划文件</strong><br>注意: 如果开启分布式路由 需要网络组件部署需要包含计算节点</p>
<blockquote>
<p>/root/tools/etc/pre_deploy/multinode</p>
</blockquote>
<p>修改如下</p>
<blockquote>
<p>[control]<br># These hostname must be resolvable from your deployment host<br>control[01:03]</p>
</blockquote>
<blockquote>
<p># The above can also be specified as follows:<br>#control[01:03] ansible_user=kolla</p>
</blockquote>
<blockquote>
<p># The network nodes are where your l3-agent and loadbalancers will run<br># This can be the same as a host in the control group<br>[network]<br>compute01<br>control[01:03]</p>
</blockquote>
<blockquote>
<p>[compute]<br>compute01<br>[monitoring]<br>control[01:03]</p>
</blockquote>
<blockquote>
<p># When compute nodes and control nodes use different interfaces,<br># you can specify “api_interface” and other interfaces like below:<br>#compute01 neutron_external_interface=eth0 api_interface=em1 storage_interface=em1 tunnel_interface=em1</p>
</blockquote>
<blockquote>
<p>[storage]<br>control[01:03]</p>
</blockquote>
<p>5.3 部署前根据全局配置准备环境</p>
<blockquote>
<p>cd /root/tools/;./prepare_deploy prepare_deploy</p>
</blockquote>
<p>5.4 <strong>如果swift, ceph 已经有分区信息,需要执行如下命令清理分区信息,并重启系统,此操作会丢失所有磁盘数据,请谨慎操作!!!</strong></p>
<blockquote>
<p>清理 swift 盘分区<br>rm /etc/kolla/config/swift/ -rf<br>ansible swift -m script -a “/root/tools/clear_swift.sh sdb”</p>
</blockquote>
<blockquote>
<p>清理ceph 盘分区<br>ansible ceph -m script -a “/root/tools/clear_ceph.sh sdb”<br>ansible ceph -m script -a “reboot”</p>
</blockquote>
<blockquote>
<p>重新执行5.3步骤完成部署前准备完成ceph,swift初始化</p>
</blockquote>
<p>5.5 配置swap分区<br>ansible node -m script -a “/root/tools/set_swap.sh”</p>
<p>###openstack部署<br>6.0 安装kolla-anisible</p>
<blockquote>
<p>cd /root/kolla-ansible-4.0.3.dev36<br>pip install .<br>6.1 openstack 部署前检查<br>执行如下命令<br>kolla-ansible -i /root/multinode prechecks</p>
</blockquote>
<p>6.2 开始部署 openstack<br>执行如下命令</p>
<blockquote>
<p>kolla-ansible -i /root/multinode deploy</p>
</blockquote>
<p>6.3 openstack 部署后操作</p>
<blockquote>
<p>kolla-ansible -i /root/multinode post-deploy</p>
</blockquote>
<p>6.4 openstack部署后初始化<br>修改外部网络配置<br>/root/kolla-ansible-4.0.3.dev36/tools/init-runonce</p>
<blockquote>
<p>EXT_NET_CIDR=’192.168.95.0/24’<br>EXT_NET_RANGE=’start=192.168.95.2,end=192.168.95.254’<br>EXT_NET_GATEWAY=’192.168.95.1’<br>执行初始化<br>source /etc/kolla/admin-openrc.sh<br>bash /root/kolla-ansible-4.0.3.dev36/tools/init-runonce</p>
</blockquote>
<p>6.5 完成部署<br>访问配置的kolla_internal_vip_address: “192.168.94.111”</p>
<p>浏览器输入 </p>
<blockquote>
<p>192.168.94.111</p>
</blockquote>
<p> 默认账号密码</p>
<blockquote>
<p>admin:Admin@yihe_1528</p>
</blockquote>
<p>日志目录</p>
<blockquote>
<p>/var/lib/docker/volumes/kolla_logs/_data/</p>
</blockquote>
<p>##FAQ</p>
<p>###组件独立安装方法<br>kolla-ansible -i /root/multinode deploy -t [组件名称]<br>可独立部署组件名称列表<br>ceph,nova,cinder,glance,neutron</p>
<p>###增量添加、减少组件方法<br>手动修改配置文件/etc/kolla/globals.yml</p>
<blockquote>
<p>例如 开启heat 只需修改如下配置中no改为yes 只需命令进行升级配置即可,反之亦然。</p>
</blockquote>
<blockquote>
<p>enable_heat: “no”</p>
</blockquote>
<blockquote>
<p>当修改/etc/kolla/globals.yml完成后,执行如下命令。<br>多节点:<br>kolla-ansible upgrade -i /root/multinode<br>kolla-ansible post-deploy -i /root/multinode</p>
</blockquote>
<p>###记录部署日志到文件<br>部署命令 | tee /tmp/deploy.log</p>
<p>###环境销毁<br>1.销毁环境 需要停止计算节点nova_libvirt 容器,参考命令如下</p>
<blockquote>
<p>ansible compute01 -m shell -a “docker stop nova_libvirt”</p>
</blockquote>
<p>2.销毁opnestack</p>
<blockquote>
<p>kolla-ansible destroy -i /root/multinode –yes</p>
</blockquote>
<p>3.ceph 磁盘清理分区信息</p>
<blockquote>
<p>ansible ceph -m script -a “/root/tools/clear_ceph.sh sdb”<br>重启所有存储节点<br>ansible ceph -m shell -a “reboot”</p>
</blockquote>
<p>###所有服务正常 虚拟机获取不到网络<br>运维节点添加配置<br>/etc/kolla/config/nova/nova.conf</p>
<blockquote>
<p>[DEFAULT]<br>vif_plugging_is_fatal = False<br>vif_plugging_timeout = 0</p>
</blockquote>
<p>执行命令更新nova配置</p>
<blockquote>
<p>kolla-ansible reconfigure -i /root/multinode -t nova</p>
</blockquote>
<p>###添加port_security 插件<br>/etc/kolla/config/neutron/ml2_conf.ini</p>
<blockquote>
<p>[ml2]<br>extension_drivers = qos, port_security</p>
</blockquote>
<p>执行命令更新nenutron配置</p>
<blockquote>
<p>kolla-ansible reconfigure -i /root/multinode -t neutron</p>
</blockquote>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/05/10/kolla-deploy/" data-id="cjgztscwu0001hel3zwxyi4it" class="article-share-link">分享</a>
</footer>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2018/05/10/hello-world/" class="article-date">
<time datetime="2018-05-09T23:40:40.853Z" itemprop="datePublished">2018-05-10</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2018/05/10/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Table of Contents -->
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="noopener">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="noopener">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="noopener">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="noopener">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="noopener">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="noopener">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="noopener">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2018/05/10/hello-world/" data-id="cjgztscw40000hel3y3rrq3mn" class="article-share-link">分享</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="follow-title ">Follow me</h3>
<div class="widget follow">
<a class="github" aria-hidden="true" href="https://github.com/giscafer" target="_blank" title="Github"></a>
<a class="weibo" aria-hidden="true" href="http://weibo.com/laohoubin" target="_blank" title="微博"></a>
<a class="zhihu" aria-hidden="true" href="http://www.zhihu.com/people/giscafer" target="_blank" title="知乎"></a>
<a class="email" aria-hidden="true" href="mailto:youemail@outlook.com" target="_blank" title="邮箱"></a>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title recent-posts">最新文章</h3>
<div class="widget">
<ul>
<li>
<a href="/2018/05/10/kolla-deploy/">kolla deploy</a>
</li>
<li>
<a href="/2018/05/10/hello-world/">Hello World</a>
</li>
</ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title archive">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">May 2018</a><span class="archive-list-count">2</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">友情链接</h3>
<div class="widget">
<ul>
<li>
<a href="http://blog.giscafer.com">giscafer's blog</a>
</li>
<li>
<a href="http://www.gis520.com">GIS520社区</a>
</li>
</ul>
</div>
</div>
<!--微信公众号二维码-->
<div class="widget-wrap">
<h3 class="follow-title ">微信公众号</h3>
<div class="widget wechat-widget">
<img src="http://blog.giscafer.com/static/images/qrcode_giscafer.jpg" alt="扫码关注" width="250"/>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-left">
© 2014 - 2018 Jeck xie |
主题 <a href="https://github.com/giscafer/hexo-theme-cafe/" target="_blank">Cafe</a>
</div>
<div id="footer-right">
联系方式 | youemail@outlook.com
</div>
</div>
</footer>
<script src="/jquery/jquery.min.js"></script>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">首页</a>
<a href="/archives" class="mobile-nav-link">归档</a>
<a href="/about" class="mobile-nav-link">关于</a>
</nav>
<img class="back-to-top-btn" src="/images/fly-to-top.png"/>
<script>
// Elevator script included on the page, already.
window.onload = function() {
var elevator = new Elevator({
selector:'.back-to-top-btn',
element: document.querySelector('.back-to-top-btn'),
duration: 1000 // milliseconds
});
}
</script>
<script>
var cloudTieConfig = {
url: document.location.href,
sourceId: "",
productKey: "e2fb4051c49842688ce669e634bc983f",
target: "cloud-tie-wrapper"
};
</script>
<script src="https://img1.ws.126.net/f2e/tie/yun/sdk/loader.js"></script>
<!-- author:forvoid begin -->
<!-- author:forvoid begin -->
<!-- author:forvoid end -->
<!-- author:forvoid end -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
})
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for (i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
})
</script>
<script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="/js/is.js"></script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/script.js"></script>
<script src="/js/elevator.js"></script>
</div>
</body>
</html>