-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
630 lines (318 loc) · 18.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>chuchu-z</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#3F51B5">
<meta name="keywords" content="chuchu-z">
<meta name="description" content="借君三十年,繁花万里好江山">
<meta property="og:type" content="website">
<meta property="og:title" content="chuchu-z">
<meta property="og:url" content="http://chuchu-z.com/">
<meta property="og:site_name" content="chuchu-z">
<meta property="og:description" content="借君三十年,繁花万里好江山">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="chuchu-z">
<meta property="article:tag" content="chuchu-z">
<meta name="twitter:card" content="summary">
<link rel="alternate" type="application/atom+xml" title="chuchu-z" href="/atom.xml">
<link rel="shortcut icon" href="https://avatars.githubusercontent.com/u/33407400?s=400&u=a9cabf4402e2e3a38e67aa43da21164bbdd22f00&v=4">
<link rel="stylesheet" href="/css/style.css?v=1.7.2">
<script>window.lazyScripts=[]</script>
<!-- custom head -->
<meta name="generator" content="Hexo 6.3.0"></head>
<body>
<div id="loading" class="active"></div>
<aside id="menu" >
<div class="inner flex-row-vertical">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
<i class="icon icon-lg icon-close"></i>
</a>
<div class="brand-wrap">
<div class="brand">
<a href="/" class="avatar waves-effect waves-circle waves-light">
<img src="https://avatars.githubusercontent.com/u/33407400?s=400&u=a9cabf4402e2e3a38e67aa43da21164bbdd22f00&v=4">
</a>
<hgroup class="introduce">
<h5 class="nickname">chuchu-z</h5>
<p class="description">借君三十年,繁花万里好江山</p>
</hgroup>
</div>
</div>
<div class="scroll-wrap flex-col">
<ul class="nav">
<li class="waves-block waves-effect active">
<a href="/" >
<i class="icon icon-lg icon-home"></i>
Home
</a>
</li>
<li class="waves-block waves-effect">
<a href="/categories" >
<i class="icon icon-lg icon-th-list"></i>
Categories
</a>
</li>
<li class="waves-block waves-effect">
<a href="https://github.com/chuchu-z" target="_blank" >
<i class="icon icon-lg icon-github"></i>
Github
</a>
</li>
</ul>
</div>
</div>
</aside>
<main id="main">
<header class="top-header" id="header">
<div class="flex-row">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
<i class="icon icon-lg icon-navicon"></i>
</a>
<div class="flex-col header-title ellipsis">chuchu-z</div>
<div class="search-wrap" id="search-wrap">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
<i class="icon icon-lg icon-chevron-left"></i>
</a>
<input type="text" id="key" class="search-input" autocomplete="off" placeholder="Search">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
<i class="icon icon-lg icon-search"></i>
</a>
</div>
</div>
</header>
<header class="content-header index-header">
<div class="container fade-scale" style="padding-left: 5%;">
<h1 class="title">chuchu-z</h1>
<h5 class="subtitle">
</h5>
</div>
</header>
<div class="container body-wrap">
<ul class="post-list">
<li class="post-list-item fade">
<article id="post-supervisor-docker-container-process-issues"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-07-24 17:49:33" datetime="2024-07-24T09:49:33.000Z" itemprop="datePublished">2024-07-24</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/linux/">Linux</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/linux/docker/">Docker</a></li></ul></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/supervisor-docker-container-process-issues/">Supervisor 管理 Docker 容器内进程问题</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
问题描述:在测试环境中发现,宿主机的 Supervisor 进程管理工具无法有效管理 Docker 容器内由 docker exec php7 命令创建的 PHP 进程。这导致 Supervisor 对 Docker 容器内的 PHP 进程无法进行有效的控制和重启
预期行为:宿主机的 Supervisor 应能够控制 Docker 容器内由 docker exec php7 命令创建的 PHP 进程,包括启动、停止和重启
<a href="/posts/supervisor-docker-container-process-issues/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-dockerfile-optimization-story"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-02-28 09:53:59" datetime="2024-02-28T01:53:59.000Z" itemprop="datePublished">2024-02-28</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/docker/">Docker</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/dockerfile-optimization-story/">Dockerfile 优化历程</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
使用dockerfile构建一个Python环境的容器, 但是构建出来的镜像太大了, 可以优化一下。
<a href="/posts/dockerfile-optimization-story/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-dockerfile-COPY-vs-Volume-Conflicts"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-02-21 10:52:28" datetime="2024-02-21T02:52:28.000Z" itemprop="datePublished">2024-02-21</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/docker/">Docker</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/dockerfile-COPY-vs-Volume-Conflicts/">Dockerfile中的COPY与volume挂载冲突问题</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
闲来无事, 想起之前本地构建博客想看看效果时, 老是出现文章内容丢失的问题, 后来构建时尝试加上--no-cache可以解决该问题, 现在又想折腾一下容器静态文件挂载到宿主机
<a href="/posts/dockerfile-COPY-vs-Volume-Conflicts/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-mysql-learn-02"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-02-19 09:53:36" datetime="2024-02-19T01:53:36.000Z" itemprop="datePublished">2024-02-19</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/mysql/">MySQL</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/mysql-learn-02/">MySQL索引事务</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
索引与引擎及其关系索引
一种提高查询性能的数据结构, 类似于一本字典中的目录, 使得可以快速定位和检索数据位置, 具有以空间换时间的设计思想,
所以并不是任何情况都适合创建索引, 索引的价值是快速定位,如果起不到定位的字段通常是不需要创建索引的,因为索引会占用物理空间,
另外, 经常更新且不需要用作where条件的字段不必要创建索引, 数据频繁修改, 动态维护索引也需要额外的开销将影响数据库性能。
<a href="/posts/mysql-learn-02/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-24-02-note"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-02-18 10:26:41" datetime="2024-02-18T02:26:41.000Z" itemprop="datePublished">2024-02-18</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%B2%81%E6%9C%88%E6%9D%82%E6%84%9F/">岁月杂感</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/24-02-note/">24-02 笔记</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
新年已过, 今日初九, 开工大吉, 祝新的一年, 身体健康, 事业顺利 !!!
<a href="/posts/24-02-note/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-mysql-learn-01"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-02-02 15:24:19" datetime="2024-02-02T07:24:19.000Z" itemprop="datePublished">2024-02-02</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/mysql/">MySQL</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/mysql-learn-01/">MySQL执行流程</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
MySQL执行流程
连接器-查询缓存(如果是select才查询缓存, MySQL8.0废弃)-解析器(词法分析, 语法分析)-预处理器(判断表/字段是否存在)-优化器-执行器(验证权限, 调用存储引擎API, 如果有索引下推则携带索引条件给存储引擎判断-存储引擎查询数据并利用索引下推过滤数据, 然后执行回表查询数据, 向执行器(server层)返回结果)
<a href="/posts/mysql-learn-01/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-osi-model-and-tcp-ip-model"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-01-30 17:46:43" datetime="2024-01-30T09:46:43.000Z" itemprop="datePublished">2024-01-30</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/other/">Other</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/osi-model-and-tcp-ip-model/">OSI 七层模型及TCP/IP 模型</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
把OSI模型以及TCP/IP模型做成表格
<a href="/posts/osi-model-and-tcp-ip-model/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-python-use-Django"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-01-15 09:41:42" datetime="2024-01-15T01:41:42.000Z" itemprop="datePublished">2024-01-15</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/python/">Python</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/python-use-Django/">Python 使用 Django 框架</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
有个项目需要用对接 ChatGpt 的API, 本来想拿老本行 PHP 写的, 但是 PHP 没有 Python 对接起来方便, 且我觉得语言只是工具, 每个语言都有它的优点和优势, 同时还能多多接触新东西, 利于学习。
<a href="/posts/python-use-Django/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-exploring-ChatGPT-Integration-in-Python"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-01-06 10:19:17" datetime="2024-01-06T02:19:17.000Z" itemprop="datePublished">2024-01-06</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/python/">Python</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/python/chatgpt/">ChatGPT</a></li></ul></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/exploring-ChatGPT-Integration-in-Python/">Python Django 接入 ChatGPT 模型训练/助理</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
ChatGPT 和 AI 的话题近两年都很火热, 自从 OpenAI 诞生出 ChatGPT 以来, 各互联网大厂公司纷纷加入并研发自家的AI大模型, 也有不少人趁着这个风口, 利用 ChatGPT 实现变现, 赚的盆满钵满, 瓜分这块AI蛋糕。
<a href="/posts/exploring-ChatGPT-Integration-in-Python/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-translate-google-hosts"
class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2024-01-03 14:27:19" datetime="2024-01-03T06:27:19.000Z" itemprop="datePublished">2024-01-03</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/other/">Other</a></li></ul>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/posts/translate-google-hosts/">谷歌翻译扩展失效 配置hosts解决</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
因为谷歌关闭了中国大陆的谷歌翻译服务, 谷歌翻译扩展也停用了, 尽管我也想少用翻译软件, 多尝试自己阅读原文文档, 但不等于直接用不了一点啊啊啊
<a href="/posts/translate-google-hosts/" class="post-more waves-effect waves-button">
</a>
</div>
</article>
</li>
</ul>
<nav id="page-nav">
<div class="inner">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/">下一页</a>
</div>
</nav>
</div>
<footer class="footer">
<div class="top">
<p>
<span>chuchu-z © 2021 - 2024</span>
<span class="num">Total words: 24.3k</span>
</p>
<p><span>This blog is <a rel="help noopener" target="_blank" href="https://github.com/chuchu-z/chuchu-z.github.io/tree/src">open-source</a> and licensed under <a rel="license noopener" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</span></p>
</div>
<div class="bottom">
<p>
<span>
Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
</span>
</p>
</div>
</footer>
</main>
<div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>
<script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: false, REWARD: false };
</script>
<script src="/js/main.js?v=1.7.2"></script>
<div class="search-panel" id="search-panel">
<ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
<a href="{path}" class="waves-block waves-effect">
<div class="title ellipsis" title="{title}">{title}</div>
<div class="flex-row flex-middle">
<div class="tags ellipsis">
{tags}
</div>
<time class="flex-col time">{date}</time>
</div>
</a>
</li>
</template>
<script src="/js/search.js?v=1.7.2" async></script>
</body>
</html>