-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
776 lines (466 loc) · 20.7 KB
/
index.html
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
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
<!doctype html>
<html class="theme-next use-motion">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link rel="stylesheet" type="text/css" href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5"/>
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.3.0rc4"/>
<meta name="description" content="分享快乐" />
<link rel="shorticon icon" type="image/x-icon" href="/favicon.ico?v=0.3.0rc4" />
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?1bde63f3f1a3ab03e13303af00288640";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<title> Anker Lee </title>
</head>
<body>
<div class="container one-column
page-home
">
<div class="headband"></div>
<div id="header" class="header">
<div class="header-inner">
<h1 class="site-meta">
<a href="/" class="brand">
<span class="logo">
<i class="icon-logo"></i>
</span>
<span class="site-title">Anker Lee</span>
</a>
</h1>
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/">
<i class="menu-item-icon icon-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives">
<i class="menu-item-icon icon-archives"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about">
<i class="menu-item-icon icon-about"></i> <br />
关于
</a>
</li>
</ul>
</div>
</div>
<div id="main" class="main">
<div class="main-inner">
<div id="content" class="content">
<div id="posts" class="posts-expand">
<div class="post post-type-normal ">
<div class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="/2015/05/21/Linux-FTP架设/">
Linux FTP架设
</a>
</h1>
<div class="post-meta">
<span class="post-time">
发表于 2015-05-21
</span>
<span class="post-comments-count">
|
<a href="/2015/05/21/Linux-FTP架设/#comments" >
<span class="post-comments-count ds-thread-count" data-thread-key="2015/05/21/Linux-FTP架设/"></span>
</a>
</span>
</div>
</div>
<div class="post-body">
<blockquote>
<p>文章欢迎转载,但转载时请保留本段文字,并置于文章的顶部<br>作者:Anker Lee<br>本文原文地址:<a href="http://ankerlee.github.io/2015/05/21/Linux-FTP架设">http://ankerlee.github.io/2015/05/21/Linux-FTP架设</a></p>
</blockquote>
<hr>
<h2 id="FTP安装和配置">FTP安装和配置</h2><h3 id="检测和安装vsftpd">检测和安装vsftpd</h3><pre><code>[root<span class="property">@localhost</span> <span class="reserved">var</span>]<span class="comment"># vsftpd #检测是否已经安装ftp</span>
-<span class="attribute">bash</span>: <span class="attribute">vsftpd</span>: command <span class="keyword">not</span> found
[root<span class="property">@localhost</span> <span class="reserved">var</span>]<span class="comment"># ll /etc/vsftpd</span>
<span class="attribute">ls</span>: 无法访问/etc/<span class="attribute">vsftpd</span>: 没有那个文件或目录
[root<span class="property">@localhost</span> <span class="reserved">var</span>]<span class="comment"># yum install vsftpd #安装ftp</span>
</code></pre>
<div class="post-more-link text-center">
<a class="btn" href="/2015/05/21/Linux-FTP架设/#more">
继续阅读 »
</a>
</div>
</div>
<div class="post-footer">
<div class="post-tags">
<a href="/tags/FTP/">
#FTP
</a>
<a href="/tags/centos/">
#centos
</a>
<a href="/tags/linux/">
#linux
</a>
<a href="/tags/最小化安装/">
#最小化安装
</a>
</div>
<div class="post-eof the-shape"></div>
</div>
</div>
<div class="post post-type-normal ">
<div class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="/2015/05/21/Linux-时钟同步/">
Linux 时钟同步
</a>
</h1>
<div class="post-meta">
<span class="post-time">
发表于 2015-05-21
</span>
<span class="post-comments-count">
|
<a href="/2015/05/21/Linux-时钟同步/#comments" >
<span class="post-comments-count ds-thread-count" data-thread-key="2015/05/21/Linux-时钟同步/"></span>
</a>
</span>
</div>
</div>
<div class="post-body">
<blockquote>
<p>文章欢迎转载,但转载时请保留本段文字,并置于文章的顶部<br>作者:Anker Lee<br>本文原文地址:<a href="http://ankerlee.github.io/2015/05/21/Linux-时钟同步">http://ankerlee.github.io/2015/05/21/Linux-时钟同步</a></p>
</blockquote>
<hr>
<h2 id="时间同步配置">时间同步配置</h2><h3 id="配置时间服务器">配置时间服务器</h3><pre><code>[root<span class="property">@localhost</span> etc]<span class="comment"># date</span>
<span class="number">2015</span>年 <span class="number">05</span>月 <span class="number">21</span>日 星期四 <span class="number">22</span>:<span class="number">04</span>:<span class="number">18</span> CST <span class="comment">#错误的时间</span>
[root<span class="property">@localhost</span> etc]<span class="comment"># ntpdate</span>
-<span class="attribute">bash</span>: <span class="attribute">ntpdate</span>: command <span class="keyword">not</span> found
</code></pre>
<div class="post-more-link text-center">
<a class="btn" href="/2015/05/21/Linux-时钟同步/#more">
继续阅读 »
</a>
</div>
</div>
<div class="post-footer">
<div class="post-tags">
<a href="/tags/centos/">
#centos
</a>
<a href="/tags/linux/">
#linux
</a>
<a href="/tags/时钟同步/">
#时钟同步
</a>
<a href="/tags/最小化安装/">
#最小化安装
</a>
</div>
<div class="post-eof the-shape"></div>
</div>
</div>
<div class="post post-type-normal ">
<div class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="/2015/05/21/CentOS-6-5-最小化安装-网络配置/">
CentOS 6.5 最小化安装 网络配置
</a>
</h1>
<div class="post-meta">
<span class="post-time">
发表于 2015-05-21
</span>
<span class="post-comments-count">
|
<a href="/2015/05/21/CentOS-6-5-最小化安装-网络配置/#comments" >
<span class="post-comments-count ds-thread-count" data-thread-key="2015/05/21/CentOS-6-5-最小化安装-网络配置/"></span>
</a>
</span>
</div>
</div>
<div class="post-body">
<blockquote>
<p>文章欢迎转载,但转载时请保留本段文字,并置于文章的顶部<br>作者:Anker Lee<br>本文原文地址:<a href="http://ankerlee.github.io/2015/05/20/CentOS-6-5-最小化安装-网络配置">http://ankerlee.github.io/2015/05/20/CentOS-6-5-最小化安装-网络配置</a></p>
</blockquote>
<hr>
<h2 id="相关环境">相关环境</h2><ol>
<li>我用的是Mac book pro,系统是Mac OS X Yosemite</li>
<li><a href="">VMware Fusion</a>(请自行安装,这里不叙述VMware Fusion的安装过程)</li>
<li><a href="">CentOS-6.5-x86_64-minimal.iso</a>(请自行通过VMware Fusion安装,这里不叙述CentOS最小化的安装过程)</li>
</ol>
<h2 id="CentOS网络配置图文详解">CentOS网络配置图文详解</h2><h3 id="尝试连接网络">尝试连接网络</h3><p>例如连接内网网关,我的内网网关是192.168.16.1,<code>ping 192.168.16.1</code>,提示错误:Network is unreachable,见下图所示:<br><img src="http://7xj72a.com1.z0.glb.clouddn.com/centos_net_1.png" alt=""><br>
<div class="post-more-link text-center">
<a class="btn" href="/2015/05/21/CentOS-6-5-最小化安装-网络配置/#more">
继续阅读 »
</a>
</div>
</div>
<div class="post-footer">
<div class="post-tags">
<a href="/tags/centos/">
#centos
</a>
<a href="/tags/linux/">
#linux
</a>
<a href="/tags/最小化安装/">
#最小化安装
</a>
<a href="/tags/网络配置/">
#网络配置
</a>
</div>
<div class="post-eof the-shape"></div>
</div>
</div>
<div class="post post-type-normal ">
<div class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="/2015/05/21/CentOS-6-5-最小化安装-VIM安装/">
CentOS 最小化安装 VIM安装和配置
</a>
</h1>
<div class="post-meta">
<span class="post-time">
发表于 2015-05-21
</span>
<span class="post-comments-count">
|
<a href="/2015/05/21/CentOS-6-5-最小化安装-VIM安装/#comments" >
<span class="post-comments-count ds-thread-count" data-thread-key="2015/05/21/CentOS-6-5-最小化安装-VIM安装/"></span>
</a>
</span>
</div>
</div>
<div class="post-body">
<blockquote>
<p>文章欢迎转载,但转载时请保留本段文字,并置于文章的顶部<br>作者:Anker Lee<br>本文原文地址:<a href="http://ankerlee.github.io/2015/05/21/CentOS-6-5-最小化安装-VIM安装">http://ankerlee.github.io/2015/05/21/CentOS-6-5-最小化安装-VIM安装</a></p>
</blockquote>
<hr>
<h2 id="VIM安装">VIM安装</h2><p>CentOS最小化安装默认自带vi,功能没有vim丰富,安装vim取代vi:<br>输入命令:<code>yum vim-enhanced</code>,安装过程中,多次提示Is this ok y/N:,输入y回车即可,最后提示Complete!表示安装成功!</p>
<h2 id="VIM配置">VIM配置</h2><h3 id="查看VIM版本信息">查看VIM版本信息</h3><p>输入命令<code>vim --version</code>,查看vim版本信息:<br>
<div class="post-more-link text-center">
<a class="btn" href="/2015/05/21/CentOS-6-5-最小化安装-VIM安装/#more">
继续阅读 »
</a>
</div>
</div>
<div class="post-footer">
<div class="post-tags">
<a href="/tags/centos/">
#centos
</a>
<a href="/tags/linux/">
#linux
</a>
<a href="/tags/最小化安装/">
#最小化安装
</a>
<a href="/tags/网络配置/">
#网络配置
</a>
</div>
<div class="post-eof the-shape"></div>
</div>
</div>
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<div id="sidebar" class="sidebar">
<div class="sidebar-inner">
<div class="site-overview">
<div class="site-author motion-element">
<img class="site-author-image" src="https://avatars3.githubusercontent.com/u/8565974?v=3&s=460" alt="Anker Lee" />
<p class="site-author-name">Anker Lee</p>
</div>
<p class="site-description motion-element">分享快乐</p>
<div class="site-state motion-element">
<div class="site-state-item site-state-posts">
<span class="site-state-item-count">4</span>
<span class="site-state-item-name">日志</span>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">6</span>
<span class="site-state-item-name">标签</span>
</div>
<div class="site-state-item site-state-pages">
<span class="site-state-item-count">1</span>
<span class="site-state-item-name">页面</span>
</div>
</div>
<div class="social-info motion-element">
<span class="soclial-item">
<a href="https://github.com/ankerlee">GITHUB</a>
</span>
<span class="soclial-item">
<a href="http://weibo.com/ankerlee9527">WEIBO</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer" class="footer">
<div class="footer-inner">
<div class="copyright">
©
2015
<span class="with-love">
<i class="icon-heart"></i>
</span>
<span class="author">Anker Lee</span>
</div>
<div class="powered-by">
由 <a class="theme-link" href="http://hexo.io">Hexo</a> 强力驱动
</div>
<div class="theme-info">
主题 - <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">NexT</a>
</div>
</div>
</div>
<div class="back-to-top"></div>
</div>
<script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
</script>
<script type="text/javascript">
function isDesktop () {
return screen.width > 991;
}
function isTablet () {
return screen.width < 992 && screen.width > 767;
}
function isMobile () {
return screen.width < 767;
}
function escapeSelector (selector) {
return selector.replace(/[!"$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&")
}
</script>
<script type="text/javascript" src="/vendors/velocity/velocity.min.js"></script>
<script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js"></script>
<script type="text/javascript" id="motion.page.home">
$(document).ready(function () {
$.Velocity.RunSequence([
{ e: $('.brand'), p: { opacity: 1 }, o: { duration: 100 } },
{ e: $('.logo'), p: { opacity: 1, top: 0 }, o: { duration: 50} },
{ e: $('.site-title'), p: { opacity: 1, top: 0 }, o: { duration: 200, sequenceQueue: false } }
]);
$('.menu-item').velocity('transition.slideDownIn', {display: null});
});
</script>
<script type="text/javascript" id="motion.global">
$(document).ready(function () {
var body = $('body');
var isSidebarVisible = false;
var sidebarToggle = $('.sidebar-toggle');
var sidebarToggleLine1st = $('.sidebar-toggle-line-first')
var sidebarToggleLine2nd = $('.sidebar-toggle-line-middle');
var sidebarToggleLine3rd = $('.sidebar-toggle-line-last');
var sidebar = $('.sidebar');
var SIDEBAR_WIDTH = '320px';
var SIDEBAR_DISPLAY_DURATION = 300;
var sidebarToogleLineStatusInit = {width: '100%', opacity: 1, left: 0, rotateZ: 0, top: 0};
var sidebarToggleLine1stStatusInit = sidebarToogleLineStatusInit;
var sidebarToggleLine1stStatusArrow = {width: '50%', rotateZ: '-45deg', top: '2px'};
var sidebarToogleLine1stStatusClose = {width: '100%', rotateZ: '-45deg', top: '5px'};
var sidebarToggleLine2ndStatusInit = sidebarToogleLineStatusInit;
var sidebarToggleLine2ndStatusArrow = {width: '90%'};
var sidebarToogleLine2ndStatusClose = {opacity: 0};
var sidebarToggleLine3rdStatusInit = sidebarToogleLineStatusInit;
var sidebarToggleLine3rdStatusArrow = {width: '50%', rotateZ: '45deg', top: '-2px'};
var sidebarToogleLine3rdStatusClose = {width: '100%', rotateZ: '45deg', top: '-5px'};
sidebatToggleMotion();
postsListMotion();
backToTopMotion();
$(document)
.on('sidebar.show', function () {
isDesktop() && body.velocity(
{paddingRight: SIDEBAR_WIDTH},
SIDEBAR_DISPLAY_DURATION
);
sidebarContentMotion();
})
.on('sidebar.hide', function () {
});
function backToTopMotion () {
var b2top = $('.back-to-top');
b2top.on('click', function () {
body.velocity('scroll');
});
}
function sidebarShowMotion () {
sidebarToggleLine1st.velocity(sidebarToogleLine1stStatusClose);
sidebarToggleLine2nd.velocity(sidebarToogleLine2ndStatusClose);
sidebarToggleLine3rd.velocity(sidebarToogleLine3rdStatusClose);
sidebar.velocity({width: SIDEBAR_WIDTH}, SIDEBAR_DISPLAY_DURATION);
sidebar.trigger('sidebar.show');
}
function sidebarHideMotion () {
isDesktop() && body.velocity({paddingRight: 0});
sidebar.velocity('reverse');
sidebarToggleLine1st.velocity(sidebarToggleLine1stStatusInit);
sidebarToggleLine2nd.velocity(sidebarToggleLine2ndStatusInit);
sidebarToggleLine3rd.velocity(sidebarToggleLine3rdStatusInit);
sidebar.trigger('sidebar.hide');
};
function sidebarContentMotion () {
$('.sidebar .motion-element').velocity(
'transition.slideRightIn',
{stagger: 50, drag: true}
);
}
function postsListMotion () {
$('.post').velocity('transition.slideDownIn', {stagger: 300, drag: true});
}
function sidebatToggleMotion () {
sidebarToggle.on('click', function () {
isSidebarVisible ? sidebarHideMotion() : sidebarShowMotion();
isSidebarVisible = !isSidebarVisible;
});
sidebarToggle.hover(function () {
if (isSidebarVisible) {return}
sidebarToggleLine1st.velocity('stop').velocity(sidebarToggleLine1stStatusArrow);
sidebarToggleLine2nd.velocity('stop').velocity(sidebarToggleLine2ndStatusArrow);
sidebarToggleLine3rd.velocity('stop').velocity(sidebarToggleLine3rdStatusArrow);
}, function () {
if (isSidebarVisible) {return}
sidebarToggleLine1st.velocity('stop').velocity(sidebarToggleLine1stStatusInit);
sidebarToggleLine2nd.velocity('stop').velocity(sidebarToggleLine2ndStatusInit);
sidebarToggleLine3rd.velocity('stop').velocity(sidebarToggleLine3rdStatusInit);
});
}
});
</script>
<script type="text/javascript">
var duoshuoQuery = {short_name:"ankerlee"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
</body>
</html>