-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
1311 lines (915 loc) · 47.9 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
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 7.3.0">
<link rel="apple-touch-icon" sizes="180x180" href="/blog/images/favicon.jpg">
<link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon.jpg">
<link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon.jpg">
<link rel="mask-icon" href="/blog/images/favicon.jpg" color="#222">
<link rel="stylesheet" href="/blog/css/main.css">
<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/blog/lib/pace/pace-theme-flash.min.css">
<script src="/blog/lib/pace/pace.min.js"></script>
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"rstyro.github.io","root":"/blog/","scheme":"Mist","version":"7.8.0","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":true},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
</script>
<meta name="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
<meta property="og:type" content="website">
<meta property="og:title" content="胖不了小陆">
<meta property="og:url" content="https://rstyro.github.io/blog/index.html">
<meta property="og:site_name" content="胖不了小陆">
<meta property="og:description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="rstyro">
<meta property="article:tag" content="帅大叔,个人博客,胖不了小陆">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://rstyro.github.io/blog/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-CN'
};
</script>
<title>胖不了小陆</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/blog/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">胖不了小陆</h1>
<span class="logo-line-after"><i></i></span>
</a>
<p class="site-subtitle" itemprop="description">信你所信,为你所见</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
<i class="fa fa-search fa-fw fa-lg"></i>
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>
</li>
<li class="menu-item menu-item-about">
<a href="/blog/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>
</li>
<li class="menu-item menu-item-search">
<a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
</a>
</li>
</ul>
</nav>
<div class="search-pop-overlay">
<div class="popup search-popup">
<div class="search-header">
<span class="search-icon">
<i class="fa fa-search"></i>
</span>
<div class="search-input-container">
<input autocomplete="off" autocapitalize="off"
placeholder="搜索..." spellcheck="false"
type="search" class="search-input">
</div>
<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
</div>
<div id="search-result">
<div id="no-result">
<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<a href="https://github.com/rstyro" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2024/12/02/VitePress%E7%9A%84%E4%BD%BF%E7%94%A8/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2024/12/02/VitePress%E7%9A%84%E4%BD%BF%E7%94%A8/" class="post-title-link" itemprop="url">VitePress的使用</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2024-12-02 16:43:29" itemprop="dateCreated datePublished" datetime="2024-12-02T16:43:29+08:00">2024-12-02</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/%E5%89%8D%E7%AB%AF/" itemprop="url" rel="index"><span itemprop="name">前端</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="VitePress的使用"><a href="#VitePress的使用" class="headerlink" title="VitePress的使用"></a>VitePress的使用</h2><ul>
<li>VitePress 是一个静态站点生成器 (SSG),专为构建快速、以内容为中心的网站而设计。简而言之,VitePress 获取用 Markdown 编写的源内容,为其应用主题,并生成可以轻松部署在任何地方的静态 HTML 页面</li>
<li>文档地址:<a target="_blank" rel="noopener" href="https://vitepress.qzxdp.cn/guide/what-is-vitepress.html">https://vitepress.qzxdp.cn/guide/what-is-vitepress.html</a></li>
<li>Github: <a target="_blank" rel="noopener" href="https://github.com/vuejs/vitepress">https://github.com/vuejs/vitepress</a></li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2024/12/02/VitePress%E7%9A%84%E4%BD%BF%E7%94%A8/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2024/11/30/Hexo-%E7%AC%94%E8%AE%B0/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2024/11/30/Hexo-%E7%AC%94%E8%AE%B0/" class="post-title-link" itemprop="url">Hexo-笔记</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2024-11-30 18:37:24" itemprop="dateCreated datePublished" datetime="2024-11-30T18:37:24+08:00">2024-11-30</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/%E5%85%B6%E4%BB%96/" itemprop="url" rel="index"><span itemprop="name">其他</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>Hexo相关配置笔记,还有一些next主题自定义配置</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2024/11/30/Hexo-%E7%AC%94%E8%AE%B0/">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2024/04/26/Centos7%E9%83%A8%E7%BD%B2K8S/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2024/04/26/Centos7%E9%83%A8%E7%BD%B2K8S/" class="post-title-link" itemprop="url">Centos7部署K8S</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2024-04-26 19:33:32" itemprop="dateCreated datePublished" datetime="2024-04-26T19:33:32+08:00">2024-04-26</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/%E7%BD%91%E7%BB%9C%E8%BF%90%E7%BB%B4/" itemprop="url" rel="index"><span itemprop="name">网络运维</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、Kubernetes概述"><a href="#一、Kubernetes概述" class="headerlink" title="一、Kubernetes概述"></a>一、Kubernetes概述</h3><ul>
<li>Kubernetes 是一个可移植、可扩展的开源平台,用于管理容器化的工作负载和服务,可促进声明式配置和自动化。 Kubernetes 拥有一个庞大且快速增长的生态,其服务、支持和工具的使用范围相当广泛。</li>
<li>Kubernetes 这个名字源于希腊语,意为“舵手”或“飞行员”。K8s 这个缩写是因为 K 和 s 之间有 8 个字符的关系。 Google 在 2014 年开源了 Kubernetes 项目。 Kubernetes 建立在 Google 大规模运行生产工作负载十几年经验的基础上, 结合了社区中最优秀的想法和实践。</li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2024/04/26/Centos7%E9%83%A8%E7%BD%B2K8S/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2024/04/18/Prometheus%E7%AE%80%E5%8D%95%E5%AE%9E%E7%94%A8/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2024/04/18/Prometheus%E7%AE%80%E5%8D%95%E5%AE%9E%E7%94%A8/" class="post-title-link" itemprop="url">Prometheus简单实用</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2024-04-18 20:42:45" itemprop="dateCreated datePublished" datetime="2024-04-18T20:42:45+08:00">2024-04-18</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、什么是Prometheus?"><a href="#一、什么是Prometheus?" class="headerlink" title="一、什么是Prometheus?"></a>一、什么是Prometheus?</h3><ul>
<li>Prometheus 是一个开源的系统监控和警报工具,主要用于采集和存储时间序列数据,它主要服务于现代的云原生环境,支持各种基础设施和应用程序的监控。</li>
<li>最初在 SoundCloud 构建。自 2012 年成立以来,许多 公司和组织都采用了 Prometheus,该项目有一个非常 活跃的开发人员和用户社区。它现在是一个独立的开源项目 并独立于任何公司进行维护。强调这一点,并澄清 该项目的治理架构,Prometheus 于 2016 年加入云原生计算基金会 作为继 Kubernetes 之后的第二个托管项目。</li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2024/04/18/Prometheus%E7%AE%80%E5%8D%95%E5%AE%9E%E7%94%A8/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/12/22/%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0%E5%BC%8F%E6%8E%A5%E5%8F%A3%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/12/22/%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0%E5%BC%8F%E6%8E%A5%E5%8F%A3%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B/" class="post-title-link" itemprop="url">常用函数式接口简单使用示例</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-12-22 09:52:31" itemprop="dateCreated datePublished" datetime="2023-12-22T09:52:31+08:00">2023-12-22</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、概述"><a href="#一、概述" class="headerlink" title="一、概述"></a>一、概述</h3><ul>
<li>在Java 8中引入了函数式编程的概念,并提供了一些新的函数式接口来支持函数式编程的需求。这些函数式接口可以简化代码、提高开发效率,并且可以应用于各种场景。</li>
</ul>
<h4 id="1、什么是函数式接口?"><a href="#1、什么是函数式接口?" class="headerlink" title="1、什么是函数式接口?"></a>1、什么是函数式接口?</h4><ul>
<li>函数式接口是指只包含一个抽象方法的接口。在Java中,函数式接口可以被赋予Lambda表达式或者方法引用,从而实现函数式编程的特性。Java 8引入了一些新的函数式接口,如Function、Consumer、Supplier和Predicate等。</li>
<li>在<code>java.util.function</code>包下的都是</li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2023/12/22/%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0%E5%BC%8F%E6%8E%A5%E5%8F%A3%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/10/24/Sentinel%E7%9A%84%E4%BD%BF%E7%94%A8/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/10/24/Sentinel%E7%9A%84%E4%BD%BF%E7%94%A8/" class="post-title-link" itemprop="url">Sentinel的使用</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-10-24 09:34:26" itemprop="dateCreated datePublished" datetime="2023-10-24T09:34:26+08:00">2023-10-24</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、什么是Sentinel"><a href="#一、什么是Sentinel" class="headerlink" title="一、什么是Sentinel"></a>一、什么是Sentinel</h3><p>Sentinel (分布式系统的流量防卫兵) 是阿里开源的一套用于服务容错的综合性解决方案。它以流量<br>为切入点, 从流量控制、熔断降级、系统负载保护等多个维度来保护服务的稳定性。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2023/10/24/Sentinel%E7%9A%84%E4%BD%BF%E7%94%A8/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/09/25/ES%E5%90%91%E9%87%8F%E6%9F%A5%E8%AF%A2/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/09/25/ES%E5%90%91%E9%87%8F%E6%9F%A5%E8%AF%A2/" class="post-title-link" itemprop="url">ES向量查询</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-09-25 16:56:23" itemprop="dateCreated datePublished" datetime="2023-09-25T16:56:23+08:00">2023-09-25</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E/" itemprop="url" rel="index"><span itemprop="name">搜索引擎</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、向量检索"><a href="#一、向量检索" class="headerlink" title="一、向量检索"></a>一、向量检索</h3><h4 id="1、向量的定义"><a href="#1、向量的定义" class="headerlink" title="1、向量的定义"></a>1、向量的定义</h4><ul>
<li>计算机只认识数字,它只能通过数字来量化这个世界,用一组数字来表示一个事物,这样的一组数字就是一个向量(Vector)</li>
<li>如果一个向量由N个数字组成,它就是一个N维向量。拿目前广泛使用的人脸识别技术来说,计算机从照片或视频中提取出人脸的图像,然后将人脸图像转换为128维或者更高维度的向量。</li>
<li>首先我们了解下什么是向量,所谓向量就是由N个数字(二值向量由N个比特组成)组成的数组,我们称之为N维向量。</li>
<li>而向量检索就是在一个给定向量数据集中,按照某种度量方式,检索出与查询向量相近的K个向量(K-Nearest Neighbor,KNN),但由于KNN计算量过大,我们通常只关注近似近邻(Approximate Nearest Neighbor,ANN)问题。</li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2023/09/25/ES%E5%90%91%E9%87%8F%E6%9F%A5%E8%AF%A2/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/09/25/OCR%E5%9B%BE%E7%89%87%E8%AF%86%E5%88%AB/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/09/25/OCR%E5%9B%BE%E7%89%87%E8%AF%86%E5%88%AB/" class="post-title-link" itemprop="url">OCR图片识别</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-09-25 16:44:07" itemprop="dateCreated datePublished" datetime="2023-09-25T16:44:07+08:00">2023-09-25</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="RapidOCR"><a href="#RapidOCR" class="headerlink" title="RapidOCR"></a>RapidOCR</h2><h3 id="RapidOCR概述"><a href="#RapidOCR概述" class="headerlink" title="RapidOCR概述"></a>RapidOCR概述</h3><ul>
<li>💖目前已知<strong>运行速度最快、支持最广</strong>,完全开源免费并支持离线快速部署的多平台多语言OCR。</li>
<li><strong>支持的语言</strong>: 默认是中英文,其他语言识别需要自助转换。具体参考<a target="_blank" rel="noopener" href="https://rapidai.github.io/RapidOCRDocs/docs/about_model/support_language/">这里</a></li>
<li><strong>缘起</strong>:<a target="_blank" rel="noopener" href="https://github.com/PaddlePaddle/PaddleOCR">PaddleOCR</a>工程化不是太好,为了方便大家在各种端上进行OCR推理,我们将PaddleOCR中的模型转换为ONNX格式,使用<code>Python/C++/Java/Swift/C#</code> 将它移植到各个平台。</li>
<li><strong>名称来源</strong>: 轻快好省并智能。基于深度学习的OCR技术,主打人工智能优势及小模型,以速度为使命,效果为主导。</li>
<li>使用:<ul>
<li>如果仓库下已有模型满足要求 → RapidOCR部署使用即可。</li>
<li>不满足要求 → 基于PaddleOCR在自己数据上微调 → RapidOCR部署。</li>
</ul>
</li>
<li>官方文档地址:<a target="_blank" rel="noopener" href="https://rapidai.github.io/RapidOCRDocs/docs/overview/">https://rapidai.github.io/RapidOCRDocs/docs/overview/</a></li>
</ul>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2023/09/25/OCR%E5%9B%BE%E7%89%87%E8%AF%86%E5%88%AB/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/09/19/seata%E4%BD%BF%E7%94%A8%E7%AC%94%E8%AE%B0/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/09/19/seata%E4%BD%BF%E7%94%A8%E7%AC%94%E8%AE%B0/" class="post-title-link" itemprop="url">seata使用笔记</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-09-19 19:55:07" itemprop="dateCreated datePublished" datetime="2023-09-19T19:55:07+08:00">2023-09-19</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、Seata安装与使用笔记"><a href="#一、Seata安装与使用笔记" class="headerlink" title="一、Seata安装与使用笔记"></a>一、Seata安装与使用笔记</h3><ul>
<li>也就是充当协调者的角色,TC服务</li>
<li>下载地址:<a target="_blank" rel="noopener" href="http://seata.io/zh-cn/blog/download.html">http://seata.io/zh-cn/blog/download.html</a></li>
<li>或者去Github下载,地址:<a target="_blank" rel="noopener" href="https://github.com/seata/seata/releases">https://github.com/seata/seata/releases</a></li>
<li>当前最新版本:1.7.0(2023-07-11)</li>
<li>下载之后,解压,修改conf里面的<code>application.yml</code>配置启动就可以了</li>
<li>可以参考<code>application.example.yml</code> 示例配置</li>
<li>删掉一些不必要的配置,大概的demo如下:
<!--noindex-->
<div class="post-button">
<a class="btn" href="/blog/2023/09/19/seata%E4%BD%BF%E7%94%A8%E7%AC%94%E8%AE%B0/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://rstyro.github.io/blog/2023/07/28/%E6%B1%89%E5%AD%97Unicode%E7%BC%96%E7%A0%81%E8%8C%83%E5%9B%B4/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/blog/images/avatar.jpg">
<meta itemprop="name" content="rstyro">
<meta itemprop="description" content="人间的饭,吃一碗少一碗,身边的人,见一面少一面,脚下的路,走一天少一天,其实人生就是一个减法,来日并不方长!">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="胖不了小陆">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/blog/2023/07/28/%E6%B1%89%E5%AD%97Unicode%E7%BC%96%E7%A0%81%E8%8C%83%E5%9B%B4/" class="post-title-link" itemprop="url">汉字Unicode编码范围</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2023-07-28 14:50:29" itemprop="dateCreated datePublished" datetime="2023-07-28T14:50:29+08:00">2023-07-28</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/blog/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="一、汉字Unicode编码范围"><a href="#一、汉字Unicode编码范围" class="headerlink" title="一、汉字Unicode编码范围"></a>一、汉字Unicode编码范围</h3><table>
<thead>
<tr>
<th>字符集</th>
<th>字数</th>
<th align="left">Unicode 编码</th>
</tr>
</thead>
<tbody><tr>
<td>基本汉字</td>
<td>20902字</td>
<td align="left">4E00-9FA5</td>
</tr>
<tr>
<td>基本汉字补充</td>
<td>90字</td>
<td align="left">9FA6-9FFF</td>
</tr>
<tr>
<td>扩展A</td>
<td>6592字</td>
<td align="left">3400-4DBF</td>
</tr>
<tr>
<td>扩展B</td>
<td>42720字</td>
<td align="left">20000-2A6DF</td>
</tr>
<tr>
<td>扩展C</td>
<td>4154字</td>
<td align="left">2A700-2B739</td>
</tr>
<tr>
<td>扩展D</td>
<td>222字</td>
<td align="left">2B740-2B81D</td>
</tr>
<tr>
<td>扩展E</td>
<td>5762字</td>
<td align="left">2B820-2CEA1</td>
</tr>
<tr>
<td>扩展F</td>
<td>7473字</td>
<td align="left">2CEB0-2EBE0</td>
</tr>
<tr>
<td>扩展G</td>