-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1594 lines (1023 loc) · 155 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>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<link rel="dns-prefetch" href="//blog.solutionx.top">
<title>无言的个人博客</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="有时候,快乐也许不过就是源于些许成就感。">
<meta name="keywords" content="C#,WPF,EF,Java,Python,JavaScript,Html,CSS,Unity3D,MSSQL,MySQL,Oracle,Sqlite,AWS,Linux,Shell,PowerShell,Photoshop">
<meta property="og:type" content="website">
<meta property="og:title" content="无言的个人博客">
<meta property="og:url" content="//blog.solutionx.top/index.html">
<meta property="og:site_name" content="无言的个人博客">
<meta property="og:description" content="有时候,快乐也许不过就是源于些许成就感。">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="无言的个人博客">
<meta name="twitter:description" content="有时候,快乐也许不过就是源于些许成就感。">
<link rel="alternative" href="/atom.xml" title="无言的个人博客" type="application/atom+xml">
<link rel="icon" href="/assets/img/favicon.png">
<link rel="stylesheet" type="text/css" href="/./main.0cf68a.css">
<style type="text/css">
#container.show {
background: linear-gradient(200deg,#a0cfe4,#384454);
}
</style>
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-103099421-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?290e0dafa60bf03c90ca9dec8cb52cd6";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="container" q-class="show:isCtnShow">
<canvas id="anm-canvas" class="anm-canvas"></canvas>
<div class="left-col" q-class="show:isShow">
<div class="overlay" style="background: #282C34"></div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<img src="/assets/blogImg/Xn_U.png" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="/">无言</a></h1>
</hgroup>
<p class="header-subtitle">始于热爱,忠于生活</p>
<nav class="header-menu">
<ul>
<li><a href="/">主页</a></li>
<li><a href="/tags/教程">教程</a></li>
<li><a href="/tags/随笔">随笔</a></li>
</ul>
</nav>
<nav class="header-smart-menu">
<a q-on="click: openSlider(e, 'innerArchive')" href="javascript:void(0)">所有文章</a>
<a q-on="click: openSlider(e, 'friends')" href="javascript:void(0)">推荐</a>
<a q-on="click: openSlider(e, 'aboutme')" href="javascript:void(0)">关于我</a>
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="https://github.com/XVCoder" title="github"><i class="icon-github"></i></a>
<a class="mail" target="_blank" href="mailto:[email protected]" title="mail"><i class="icon-mail"></i></a>
</div>
<!-- 网易云音乐插件 -->
<div style="position:absolute; bottom:120px left:auto; width:85%">
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="240" height="52"
src="//music.163.com/outchain/player?type=2&id=464448450&auto=1&height=32"></iframe>
</div>
</nav>
</header>
</div>
</div>
<div class="mid-col" q-class="show:isShow,hide:isShow|isFalse">
<nav id="mobile-nav">
<div class="overlay js-overlay" style="background: #282C34"></div>
<div class="btnctn js-mobile-btnctn">
<div class="slider-trigger list" q-on="click: openSlider(e)"><i class="icon icon-sort"></i></div>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
<img src="/assets/blogImg/Xn_U.png" class="js-avatar">
</div>
<hgroup>
<h1 class="header-author js-header-author">无言</h1>
</hgroup>
<p class="header-subtitle"><i class="icon icon-quo-left"></i>始于热爱,忠于生活<i class="icon icon-quo-right"></i></p>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="https://github.com/XVCoder" title="github"><i class="icon-github"></i></a>
<a class="mail" target="_blank" href="mailto:[email protected]" title="mail"><i class="icon-mail"></i></a>
</div>
</nav>
<nav class="header-menu js-header-menu">
<ul style="width: 70%">
<li style="width: 33.333333333333336%"><a href="/">主页</a></li>
<li style="width: 33.333333333333336%"><a href="/tags/教程">教程</a></li>
<li style="width: 33.333333333333336%"><a href="/tags/随笔">随笔</a></li>
</ul>
</nav>
</header>
</div>
<div class="mobile-mask" style="display:none" q-show="isShow"></div>
</nav>
<div id="wrapper" class="body-wrap">
<div class="menu-l">
<div class="canvas-wrap">
<canvas data-colors="#eaeaea" data-sectionHeight="100" data-contentId="js-content" id="myCanvas1" class="anm-canvas"></canvas>
</div>
<div id="js-content" class="content-ll">
<article id="post-diary-230413-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2023/04/13/diary-230413-01/">Docker + MySQL 主从配置以实现读写分离</a>
</h1>
<a href="/2023/04/13/diary-230413-01/" class="archive-article-date">
<time datetime="2023-04-13T14:06:20.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2023-04-13</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>【什么是 MySQL 主从备份】<br>
引用一段最近很火的 ChatGPT(微软NewBing)给出的解释</p>
<blockquote>
<p>MySQL的主从备份是为了确保数据安全,避免一台机器硬盘损坏导致数据永久丢失。主从备份的实现方式是将主数据库的数据同步到从数据库上,当主数据库出现故障时,可以快速切换到从数据库上,保证业务的正常运行。<br>
在MySQL中,主从备份有两种实现方式:基于二进制日志的复制和基于GTID的复制。基于二进制日志的复制是MySQL自带的一种复制方式,它通过记录二进制日志来实现主从备份。而基于GTID的复制是MySQL 5.6版本之后引入的一种新的复制方式,它通过记录全局事务ID来实现主从备份。</p>
</blockquote>
<a class="article-more-a" href="/2023/04/13/diary-230413-01/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color2">Docker</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2023-04</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">MySQL</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2023/04/13/diary-230413-01/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-230107-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2023/01/07/diary-230107-01/">WPF TreeViewItem中某一元素的属性变化时更改其他元素的属性</a>
</h1>
<a href="/2023/01/07/diary-230107-01/" class="archive-article-date">
<time datetime="2023-01-07T14:57:40.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2023-01-07</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>最近用WPF写一个小工具的时候用到了TreeView,想实现如下效果,当鼠标进入到当前节点时,自动显示用于展开下拉菜单的按钮。</p>
<p><img src="/assets/blogImg/DP-230107-01.gif" alt="效果图"></p>
<a class="article-more-a" href="/2023/01/07/diary-230107-01/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color4">WPF</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2023-01</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">TreeViewItem</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color2">DataTrigger</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2023/01/07/diary-230107-01/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220915-03" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/09/15/diary-220915-03/">在Hexo中使用emoji表情</a>
</h1>
<a href="/2022/09/15/diary-220915-03/" class="archive-article-date">
<time datetime="2022-09-15T11:07:03.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-09-15</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Hexo 默认使用 hexo-renderer-marked 作为 Markdown 引擎。<br>
由于其不支持渲染 emoji 表情(即不支持类似于 <code>:smile:</code> 的写法),想要使用 <code>:smile:</code> 来显示表情 😄 ,则需要更换一个支持该功能的插件。</p>
<a class="article-more-a" href="/2022/09/15/diary-220915-03/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">Hexo</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color4">Markdown</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-09</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/09/15/diary-220915-03/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220915-02" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/09/15/diary-220915-02/">Markdown表情代号大全</a>
</h1>
<a href="/2022/09/15/diary-220915-02/" class="archive-article-date">
<time datetime="2022-09-15T10:08:03.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-09-15</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>由于国内网络问题,时常访问不到 Github Gist 等站点,故将其做一个备份放到自己的个人博客。<br>
Markdown表情代号源地址点 👉 <a href="https://gist.github.com/rxaviers/7360908" target="_blank" rel="external">这里</a></p>
<a class="article-more-a" href="/2022/09/15/diary-220915-02/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color4">Markdown</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-09</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/09/15/diary-220915-02/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220915-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/09/15/diary-220915-01/">certbot自动签发SSL通配符证书</a>
</h1>
<a href="/2022/09/15/diary-220915-01/" class="archive-article-date">
<time datetime="2022-09-15T08:28:42.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-09-15</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>【概述】<br>
① 使用 certbot 签发免费的 SSL 通配符证书;<br>
② 证书有效期为三个月,非通配符证书到期后会自动重签,但是通配符证书由于需要设置 DNS TXT 记录,故需要借助各云服务商的CLI工具自动设置(本文以阿里云CLI为例);<br>
③ 编写用于转换证书格式的脚本(本文主要介绍用于 .net 程序的证书格式 .pfx);<br>
④ 编写用于将证书复制到远程服务器对应目录的脚本(此脚本需要用到 expect 工具自动补全 ssh 密码,存在一定风险,介意的朋友也可以考虑更安全的方式,也欢迎在评论区分享出来!);<br>
⑤ 往 crontab 中添定时任务,定时执行证书刷新命令以及上述两个脚本。</p>
<a class="article-more-a" href="/2022/09/15/diary-220915-01/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-09</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">Https</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color4">SSL</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">Certbot</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">Shell</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/09/15/diary-220915-01/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220810-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/08/10/diary-220810-01/">C# 你对枚举有多了解?</a>
</h1>
<a href="/2022/08/10/diary-220810-01/" class="archive-article-date">
<time datetime="2022-08-10T14:47:11.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-08-10</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>那些你可能没有关注过的枚举知识。</p>
<a class="article-more-a" href="/2022/08/10/diary-220810-01/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">C#</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-08</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/08/10/diary-220810-01/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220804-03" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/08/04/diary-220804-03/">IdentityServer4 - 入门</a>
</h1>
<a href="/2022/08/04/diary-220804-03/" class="archive-article-date">
<time datetime="2022-08-04T13:35:06.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-08-04</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<h4 id="【Identity-Server-4】">【Identity Server 4】</h4>
<p>官网:<a href="https://identityserver4.readthedocs.io/en/latest/index.html" target="_blank" rel="external">https://identityserver4.readthedocs.io/en/latest/index.html</a></p>
<p>[概述]<br>
是一个 OpenID Connect provider → 它实现了 OpenID Connect 和 OAuth 2.0 两个协议</p>
<a class="article-more-a" href="/2022/08/04/diary-220804-03/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-08</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">IdentityServer4</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">ASP.NET Core</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/08/04/diary-220804-03/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220804-02" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/08/04/diary-220804-02/">OpenID Connect 协议</a>
</h1>
<a href="/2022/08/04/diary-220804-02/" class="archive-article-date">
<time datetime="2022-08-04T13:00:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-08-04</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<h4 id="【OpenID-Connect-协议】">【OpenID Connect 协议】</h4>
<p>是一种身份认证协议(Authentication),基于OAuth2.0构建<br>
官方定义:OpenID Connect 是建立在 OAuthorization2.0 协议上的一个简单的身份标识层,OpenID Connect 兼容 OAuth2.0</p>
<p>注意:(以下二者单词不是同一个)<br>
身份认证 Authentication<br>
授权 Authorization</p>
<a class="article-more-a" href="/2022/08/04/diary-220804-02/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-08</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">OpenID Connect</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">IdentityServer4</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/08/04/diary-220804-02/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220804-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/08/04/diary-220804-01/">OAuth 2.0 协议</a>
</h1>
<a href="/2022/08/04/diary-220804-01/" class="archive-article-date">
<time datetime="2022-08-04T12:00:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-08-04</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<h4 id="【OAuth2-0】">【OAuth2.0】</h4>
<ol>
<li>是一个委托协议,它可以让那些控制资源的人允许某个应用以代表他们来访问他们控制的资源,注意是“代表这些人”,而不是假冒或者模仿这些人。</li>
<li>这个应用从资源的所有者那里获得到授权(Authorization)和 AccessToken,随后就可以使用这个 Access Token 来访问资源。</li>
</ol>
<a class="article-more-a" href="/2022/08/04/diary-220804-01/#more">more >></a>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<i class="icon-price-tags icon"></i>
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color3">2022-08</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color1">IdentityServer4</a>
</li>
<li class="article-tag-list-item">
<a href="javascript:void(0)" class="js-tag article-tag-list-link color5">OAuth 2.0</a>
</li>
</ul>
</div>
<p class="article-more-link">
<a class="article-more-a" href="/2022/08/04/diary-220804-01/">全 文 >></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<aside class="wrap-side-operation">
<div class="mod-side-operation">
<div class="jump-container" id="js-jump-container" style="display:none;">
<a href="javascript:void(0)" class="mod-side-operation__jump-to-top">
<i class="icon-font icon-back"></i>
</a>
<div id="js-jump-plan-container" class="jump-plan-container" style="top: -11px;">
<i class="icon-font icon-plane jump-plane"></i>
</div>
</div>
</div>
</aside>
<article id="post-diary-220731-01" class="article article-type-post article-index" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2022/07/31/diary-220731-01/">在Docker中运行Wiki.js</a>
</h1>
<a href="/2022/07/31/diary-220731-01/" class="archive-article-date">
<time datetime="2022-07-31T12:00:00.000Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2022-07-31</time>
</a>
</header>
<div class="article-entry" itemprop="articleBody">
<p>本教程介绍编写docker-compose.yaml以在Docker中运行Wiki.js</p>
<a class="article-more-a" href="/2022/07/31/diary-220731-01/#more">more >></a>