-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
668 lines (463 loc) · 19.8 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
<!DOCTYPE html>
<html lang="en">
<!-- Head tag -->
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="分享自己的一些学习笔记!">
<meta name="keyword" content>
<link rel="shortcut icon" href="/img/favicon.ico">
<title>
moloach的博客 | moloach's Blog
</title>
<link rel="canonical" href="http://yoursite.com/">
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/hux-blog.min.css">
<!-- Pygments Highlight CSS -->
<link rel="stylesheet" href="/css/highlight.css">
<!-- Custom Fonts -->
<!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
<!-- Hux change font-awesome CDN to qiniu -->
<link href="https://cdn.staticfile.org/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- Hux Delete, sad but pending in China
<link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/
css'>
-->
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- ga & ba script hoook -->
<script></script>
</head>
<!-- hack iOS CSS :active style -->
<body ontouchstart="">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Moloach's Blog</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Known Issue, found by Hux:
<nav>'s height woule be hold on by its content.
so, when navbar scale out, the <nav> will cover tags.
also mask any touch event of tags, unfortunately.
-->
<div id="huxblog_navbar">
<div class="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="/">Home</a>
</li>
<li>
<a href="/about/">About</a>
</li>
<li>
<a href="/archives/">Archives</a>
</li>
<li>
<a href="/tags/">Tags</a>
</li>
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<script>
// Drop Bootstarp low-performance Navbar
// Use customize navbar with high-quality material design animation
// in high-perf jank-free CSS3 implementation
var $body = document.body;
var $toggle = document.querySelector('.navbar-toggle');
var $navbar = document.querySelector('#huxblog_navbar');
var $collapse = document.querySelector('.navbar-collapse');
$toggle.addEventListener('click', handleMagic)
function handleMagic(e){
if ($navbar.className.indexOf('in') > 0) {
// CLOSE
$navbar.className = " ";
// wait until animation end.
setTimeout(function(){
// prevent frequently toggle
if($navbar.className.indexOf('in') < 0) {
$collapse.style.height = "0px"
}
},400)
}else{
// OPEN
$collapse.style.height = "auto"
$navbar.className += " in";
}
}
</script>
<!-- Main Content -->
<!-- Page Header -->
<header class="intro-header" style="background-image: url('/img/paul-gilmore.jpg')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 ">
<div class="site-heading">
<h1>Moloach's Blog</h1>
<!--<hr class="small">-->
<span class="subheading">To Be A Better Developer!</span>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<!-- USE SIDEBAR -->
<!-- Post Container -->
<div class="
col-lg-8 col-lg-offset-1
col-md-8 col-md-offset-1
col-sm-12
col-xs-12
post-container
">
<!-- Main Content -->
<div class="post-preview">
<a href="/2021/01/07/memory-glance/">
<h2 class="post-title">
linux 内存模型
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
linux 内存模型
reference:现在的 Linux 内核和 Linux 2.6 的内核有多大区别? - larmbr宇的回答 - 知乎linux内存管理(详解)20 张图揭开「内存管理」的迷雾,瞬间豁然开朗 - 小林coding的文章 - 知乎浅谈Linux内存管理 - lecury的文章 - 知乎
概述:内存管理子系统,作为 kernel 核心中的核心,是承接所有系统活动的舞台......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2021-01-07
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2020/03/13/ceph-management/">
<h2 class="post-title">
ceph 管理文档
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
ceph管理文档本文档是ceph集群的管理文档,记录常见的命令、运维指令以及相关管理的内容
书籍
集群命令说明12345678910111213141516171819202122232425# 查看池中的对象rados df#查看RADOS池:rados lspools# 显示池数量ceph osd lspools#集群状态ceph status# 查看ceph集群的详细信息ceph he......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2020-03-13
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/11/04/computer-basic/">
<h2 class="post-title">
计算机进程、线程
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
进程拥有资源和独立运行的基本单位。可以使用fork来衍生新进程,衍生的新进程称之为子进程,会获得父进程的数据段、堆和栈的副本,进程间的副本都是独立的,进程内的副本的修改对其他父进程或者兄弟进程不可见。
标识把进程的优先级、状态、虚拟地址范围以及各种访问权限保存到进程描述符中
PID(进程ID)
PPID(父进程ID)PID单调递增,当达到最大值时,重新开始查找可以使用的ID
状态
可运行......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-11-04
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/09/27/jstack/">
<h2 class="post-title">
jstack 简介
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
导出java程序的堆栈信息到文件中jstack -F <pid> > <pid>.stack
https://www.jianshu.com/p/6690f7e92f27
一、线程5种状态
新建状态(New) 新创建了一个线程对象。
就绪状态(Runnable) 线程对象创建后,其他线程调用了该对象的start()方法。该状态的线程位于可运行线程池中,变......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-09-27
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/04/20/proxy/">
<h2 class="post-title">
proxy setting
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
常见软件代理设置为了网络安全,在公司内网中一般是不能直连互联网,一般会通过一些代理的方式来访问外网。
常见软件一般都是通过http代理来访问
windowscmd123456#设置代理 (只针对当前terminal有效)set http_proxy=http://xxx.xxx.xxx.xxx:xxxset https_proxy=http://xxx.xxx.xxx.xxx:xxx#取消代......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-04-20
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/03/26/Cheatsheet/">
<h2 class="post-title">
Quick SQL Cheatsheet
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
Quick SQL CheatsheetA quick reminder of all relevant SQL queries and examples on how to use them.
Table of Contents
Finding Data Queries.
Data Modification Queries.
Reporting Queries.
Join ......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-03-26
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/03/18/linuxCommand/">
<h2 class="post-title">
linuxCommand
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
常用linux命令12345678# 目录下的文件个数find . | wc -l #大于某个值的文件个数find . -size +3K | wc -l#看文件夹大小(一层)du -h -d 1
linux tail命令的使用方法详解linux tail命令用途是依照要求将指定的文件的最后部分输出到标准设备,通常是终端,通俗讲来,就是把某个档案文件的最后几行显示到终端上,假设该档案有更新,......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-03-18
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/03/15/docker/">
<h2 class="post-title">
docker
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
安装12345sudo yum install dockersudo apt install docker-ce#可把普通用户添加到docker用户组来避免使用`sudo`权限
常用命令123456789101112131415161718192021222324252627282930313233343536373839404142434445# 创建并运行新的镜像(命令)docker r......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-03-15
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/03/15/Kubernetes/">
<h2 class="post-title">
Kubernetes
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
什么是Kubernetes?Kubernetes(简称k8s,命名由来是因为k与s中间有8个字母)是Google基于内部Borg开源的容器编排引擎,它支持自动化部署、大规模可伸缩、应用容器化管理。我们在完成一个应用程序的开发时,需要冗余部署该应用的多个实例,同时需要支持对应用的请求进行负载均衡,在Kubernetes中,我们可以把这个应用的多个实例分别启动一个容器,每个容器里面运行一个应用实......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-03-15
</p>
</div>
<hr>
<div class="post-preview">
<a href="/2019/03/13/ceph-RADOS/">
<h2 class="post-title">
ceph RADOS
</h2>
<h3 class="post-subtitle">
</h3>
<div class="post-content-preview">
Ceph RADOSRADOS是Ceph存储系统的核心,也称为Ceph存储集群。Ceph的所有优秀特性都是由RADOS提供的,包括分布式对象存储、高可用性、高可靠性、没有单点故障、自我修复以及自我管理等。因此,RADOS层在Ceph存储架构中扮演着举足轻重的角色。Ceph的数据访问方法(如RBD、CephFS、RADOSGW和librados)的所有操作都是在RADOS层之上构建的。
当Ce......
</div>
</a>
<p class="post-meta">
Posted by moloach on
2019-03-13
</p>
</div>
<hr>
<!-- Pager -->
<ul class="pager">
<li class="next">
<a href="/page/2/">Older Posts →</a>
</li>
</ul>
<!-- 如果开启评论功能 -->
</div>
<!-- Sidebar Container -->
<div class="
col-lg-3 col-lg-offset-0
col-md-3 col-md-offset-0
col-sm-12
col-xs-12
sidebar-container
">
<!-- Featured Tags -->
<section>
<!-- no hr -->
<h5><a href="/tags/">FEATURED TAGS</a></h5>
<div class="tags">
<a href="/tags/#csharp" title="csharp" rel="8">csharp</a>
<a href="/tags/#docker" title="docker" rel="2">docker</a>
<a href="/tags/#ceph" title="ceph" rel="3">ceph</a>
<a href="/tags/#linux" title="linux" rel="4">linux</a>
</div>
</section>
<!-- Short About -->
<section class="visible-md visible-lg">
<hr><h5><a href="/about/">ABOUT ME</a></h5>
<div class="short-about">
<img src="/img/avatar.jpg" />
<p>一个很无聊的人!</p>
<!-- SNS Link -->
<ul class="list-inline">
</ul>
</div>
</section>
<!-- Friends Blog -->
<hr>
<h5>FRIENDS</h5>
<ul class="list-inline">
</ul>
</div>
</div>
</div>
<!-- Footer -->
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center">
</ul>
<p class="copyright text-muted">
Copyright © Moloach's Blog 2021
<br>
Theme by <a href="http://huangxuan.me">Hux</a>
<span style="display: inline-block; margin: 0 5px;">
<i class="fa fa-heart"></i>
</span>
Ported by <a href="http://blog.kaijun.rocks">Kaijun</a>
<!-- <iframe
style="margin-left: 2px; margin-bottom:-5px;"
frameborder="0" scrolling="0" width="91px" height="20px"
src="https://ghbtns.com/github-btn.html?user=kaijun&repo=hexo-theme-huxblog&type=star&count=true" >
</iframe> -->
</p>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="/js/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="/js/hux-blog.min.js"></script>
<!-- async load function -->
<script>
function async(u, c) {
var d = document, t = 'script',
o = d.createElement(t),
s = d.getElementsByTagName(t)[0];
o.src = u;
if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
s.parentNode.insertBefore(o, s);
}
</script>
<!--
Because of the native support for backtick-style fenced code blocks
right within the Markdown is landed in Github Pages,
From V1.6, There is no need for Highlight.js,
so Huxblog drops it officially.
- https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0
- https://help.github.com/articles/creating-and-highlighting-code-blocks/
-->
<!--
<script>
async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
hljs.initHighlightingOnLoad();
})
</script>
<link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
-->
<!-- jquery.tagcloud.js -->
<script>
// only load tagcloud.js in tag.html
if($('#tag_cloud').length !== 0){
async("http://yoursite.com/js/jquery.tagcloud.js",function(){
$.fn.tagcloud.defaults = {
//size: {start: 1, end: 1, unit: 'em'},
color: {start: '#bbbbee', end: '#0085a1'},
};
$('#tag_cloud a').tagcloud();
})
}
</script>
<!--fastClick.js -->
<script>
async("https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){
var $nav = document.querySelector("nav");
if($nav) FastClick.attach($nav);
})
</script>
<!-- Google Analytics -->
<!-- Baidu Tongji -->
<!-- Side Catalog -->
<!-- Image to hack wechat -->
<!--<img src="http://yoursite.com/img/icon_wechat.png" width="0" height="0" />-->
<!-- Migrate from head to bottom, no longer block render and still work -->
</body>
</html>