-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1146 lines (754 loc) · 42.4 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 4.2.1">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"marchccc.top","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"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":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
</script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "gjl00v3rti");
</script>
<meta name="description" content="编程技术交流">
<meta property="og:type" content="website">
<meta property="og:title" content="Marchccc">
<meta property="og:url" content="https://marchccc.top/index.html">
<meta property="og:site_name" content="Marchccc">
<meta property="og:description" content="编程技术交流">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Marchccc">
<meta property="article:tag" content="Marchccc">
<meta property="article:tag" content=" PHP">
<meta property="article:tag" content=" 博客">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://marchccc.top/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-CN'
};
</script>
<title>Marchccc</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>
<link rel="alternate" href="/atom.xml" title="Marchccc" type="application/atom+xml">
</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="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">Marchccc</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">
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-首页">
<a href="/" rel="section"><i class="home fa-fw"></i>首页</a>
</li>
<li class="menu-item menu-item-归档">
<a href="/archives/" rel="section"><i class="archive fa-fw"></i>归档</a>
</li>
<li class="menu-item menu-item-分类">
<a href="/categories/" rel="section"><i class="th fa-fw"></i>分类</a>
</li>
<li class="menu-item menu-item-关于">
<a href="/about/" rel="section"><i class="user fa-fw"></i>关于</a>
</li>
<li class="menu-item menu-item-网站状态">
<a href="https://stats.uptimerobot.com/x2EnvUJ20j" rel="noopener" target="_blank"><i class=" fa-fw"></i>网站状态</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<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://marchccc.top/2024/10/21/Mac-photoshop%E5%BC%B9%E7%AA%97Sorry-this-Adobe-app-is-not-available%E3%80%81This-unlicensed-Adobe-app-has-been-disabled-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/10/21/Mac-photoshop%E5%BC%B9%E7%AA%97Sorry-this-Adobe-app-is-not-available%E3%80%81This-unlicensed-Adobe-app-has-been-disabled-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/" class="post-title-link" itemprop="url">Mac photoshop弹窗Sorry, this Adobe app is not available、This unlicensed Adobe app has been disabled 解决办法</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-10-21 15:13:05 / 修改时间:15:17:45" itemprop="dateCreated datePublished" datetime="2024-10-21T15:13:05+08:00">2024-10-21</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="/categories/%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">工具</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>启动 PS 后,通过【活动监视器】强制退出 <a href="http://www.adobe.com" target="_blank" rel="noopener">www.adobe.com</a> 这个进程即可。<br>不限版本,缺点是每次都需要这样操作。</p>
</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://marchccc.top/2024/09/01/Cloudflare%E5%8F%8D%E4%BB%A3docker-hub/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/09/01/Cloudflare%E5%8F%8D%E4%BB%A3docker-hub/" class="post-title-link" itemprop="url">Cloudflare反代docker hub</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-09-01 10:31:08" itemprop="dateCreated datePublished" datetime="2024-09-01T10:31:08+08:00">2024-09-01</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-09-27 16:53:07" itemprop="dateModified" datetime="2024-09-27T16:53:07+08:00">2024-09-27</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="/categories/%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">工具</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>控制台面板 -> 左侧 Workers 和 Pages -> 创建应用程序 -> 创建 Worker -> 点击保存 -> 点击完成 -> 编辑代码</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2024/09/01/Cloudflare%E5%8F%8D%E4%BB%A3docker-hub/#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://marchccc.top/2024/08/30/%E4%BD%BF%E7%94%A8Supervisor%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/30/%E4%BD%BF%E7%94%A8Supervisor%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B/" class="post-title-link" itemprop="url">使用Supervisor守护进程</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-08-30 17:14:55 / 修改时间:17:53:39" itemprop="dateCreated datePublished" datetime="2024-08-30T17:14:55+08:00">2024-08-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="/categories/%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">工具</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>queue:work进程老是因为各种原因停止,需要一个进程守护工具。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2024/08/30/%E4%BD%BF%E7%94%A8Supervisor%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%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://marchccc.top/2024/08/13/%E9%83%A8%E7%BD%B2QQ-AI-bot.md/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/13/%E9%83%A8%E7%BD%B2QQ-AI-bot.md/" class="post-title-link" itemprop="url">部署 QQ AI聊天机器人</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-08-13 17:37:39" itemprop="dateCreated datePublished" datetime="2024-08-13T17:37:39+08:00">2024-08-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-11-29 19:22:01" itemprop="dateModified" datetime="2024-11-29T19:22:01+08:00">2024-11-29</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="/categories/%E5%90%8E%E7%AB%AF/" itemprop="url" rel="index"><span itemprop="name">后端</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>目的:部署一个 QQ AI聊天机器人。</p>
<p>用到两个开源项目,NapCatQQ 和 Koishi。</p>
<p>NapCatQQ 实现了QQ登录,能够通过程序收发QQ消息,提供了onebot协议支持。<br>Koishi 是个机器人框架,具备丰富插件系统。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2024/08/13/%E9%83%A8%E7%BD%B2QQ-AI-bot.md/#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://marchccc.top/2024/08/12/ClashX-Meta%E9%85%8D%E7%BD%AEhy2%E7%BA%BF%E8%B7%AF/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/12/ClashX-Meta%E9%85%8D%E7%BD%AEhy2%E7%BA%BF%E8%B7%AF/" class="post-title-link" itemprop="url">ClashX.Meta配置hy2线路</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-08-12 18:23:39 / 修改时间:18:24:32" itemprop="dateCreated datePublished" datetime="2024-08-12T18:23:39+08:00">2024-08-12</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="/categories/%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">工具</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>下载 <a href="https://github.com/MetaCubeX/ClashX.Meta" target="_blank" rel="noopener">https://github.com/MetaCubeX/ClashX.Meta</a></p>
<p>在 ClashX.Meta 更多设置 里,切换到Meta,下载安装Meta内核。</p>
<p>通过节点转换订阅服务:<a href="https://v2rayse.com/node-convert/" target="_blank" rel="noopener">https://v2rayse.com/node-convert/</a><br>把 hysteria2://password@ip:443?peer=bing.com&insecure=1&obfs=none#bwg-HY2<br>转换为Clash订阅链接</p>
<p>在 ClashX.Meta ,配置-托管配置-管理,新增订阅链接即可。</p>
</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://marchccc.top/2024/08/10/oracle-linux%E5%AE%89%E8%A3%85hy2/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/10/oracle-linux%E5%AE%89%E8%A3%85hy2/" class="post-title-link" itemprop="url">oracle linux安装hy2</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-08-10 18:13:28" itemprop="dateCreated datePublished" datetime="2024-08-10T18:13:28+08:00">2024-08-10</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-11-04 16:49:23" itemprop="dateModified" datetime="2024-11-04T16:49:23+08:00">2024-11-04</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="/categories/%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">工具</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>切换到root,关闭防火墙,关闭安全模式。</p>
<p>sudo -i<br>sudo service firewalld stop</p>
<p>vim /etc/selinux/config<br>找到SELINUX=enforcing,修改为SELINUX=disabled</p>
<p>通过一键脚本安装hy2服务</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)</span><br></pre></td></tr></table></figure>
<p>项目:<a href="https://github.com/yonggekkk/sing-box_hysteria2_tuic_argo_reality" target="_blank" rel="noopener">https://github.com/yonggekkk/sing-box_hysteria2_tuic_argo_reality</a></p>
<p>安装后得到 hysteria2://.. 节点链接</p>
</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://marchccc.top/2024/08/06/npm%E3%80%81yarn%E6%9B%B4%E6%8D%A2%E6%BA%90/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/08/06/npm%E3%80%81yarn%E6%9B%B4%E6%8D%A2%E6%BA%90/" class="post-title-link" itemprop="url">npm、yarn更换源</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-08-06 13:03:12" itemprop="dateCreated datePublished" datetime="2024-08-06T13:03:12+08:00">2024-08-06</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-08-14 15:07:09" itemprop="dateModified" datetime="2024-08-14T15:07:09+08:00">2024-08-14</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="/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">
<p>npm config set registry <a href="https://registry.npmmirror.com" target="_blank" rel="noopener">https://registry.npmmirror.com</a><br>yarn config set registry <a href="https://registry.npmmirror.com" target="_blank" rel="noopener">https://registry.npmmirror.com</a></p>
<p>npm config get registry<br>yarn config get registry</p>
<p>yarn 如果还是请求之前的源,要删掉 /Users/jun/.config/yarn/global 目录下的lock文件。</p>
<p>mark: yarn 更新自身版本命令 yarn set version latest</p>
<p>官方源:<a href="https://registry.npmjs.org" target="_blank" rel="noopener">https://registry.npmjs.org</a></p>
</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://marchccc.top/2024/05/07/books-i-read-in-2024/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/05/07/books-i-read-in-2024/" class="post-title-link" itemprop="url">2024 阅读书单</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-05-07 14:49:01" itemprop="dateCreated datePublished" datetime="2024-05-07T14:49:01+08:00">2024-05-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2024-10-30 13:51:45" itemprop="dateModified" datetime="2024-10-30T13:51:45+08:00">2024-10-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="/categories/%E9%98%85%E8%AF%BB/" itemprop="url" rel="index"><span itemprop="name">阅读</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>持久的精力投入到工作和生活,发觉思维越来越空,这对健康的发展非常不利。<br>所以记录分享 2024 年读过的书,来时时提醒自己要继续阅读。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2024/05/07/books-i-read-in-2024/#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://marchccc.top/2024/04/25/%E6%9C%AC%E5%9C%B0%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7-MailHog/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/04/25/%E6%9C%AC%E5%9C%B0%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7-MailHog/" class="post-title-link" itemprop="url">本地电子邮件测试工具-MailHog</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-25 16:12:47 / 修改时间:17:02:23" itemprop="dateCreated datePublished" datetime="2024-04-25T16:12:47+08:00">2024-04-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="/categories/%E5%90%8E%E7%AB%AF/" itemprop="url" rel="index"><span itemprop="name">后端</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>通过MailHog,可以在浏览器中查看本机发的邮件内容,而无需发送到外网。</p>
<p><a href="https://github.com/mailhog/MailHog" target="_blank" rel="noopener">https://github.com/mailhog/MailHog</a></p>
<p>在 macOS 环境下,下载文件后:<br>添加可执行权限:chmod +x MailHog_darwin_amd64<br>运行:./MailHog_darwin_amd64<br>浏览器打开查看邮件:<a href="http://0.0.0.0:8025/" target="_blank" rel="noopener">http://0.0.0.0:8025/</a></p>
<p>Laravel 发送邮件到 MailHog 使用例子:</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/2024/04/25/%E6%9C%AC%E5%9C%B0%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7-MailHog/#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://marchccc.top/2024/01/17/nginx%E5%9F%9F%E5%90%8D%E8%BD%AC%E5%8F%91%E5%86%85%E7%BD%91%E7%AB%AF%E5%8F%A3%E9%85%8D%E7%BD%AE/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="Marchccc">
<meta itemprop="description" content="编程技术交流">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Marchccc">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2024/01/17/nginx%E5%9F%9F%E5%90%8D%E8%BD%AC%E5%8F%91%E5%86%85%E7%BD%91%E7%AB%AF%E5%8F%A3%E9%85%8D%E7%BD%AE/" class="post-title-link" itemprop="url">nginx域名转发内网端口配置</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-01-17 11:51:49 / 修改时间:11:59:25" itemprop="dateCreated datePublished" datetime="2024-01-17T11:51:49+08:00">2024-01-17</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="/categories/%E5%90%8E%E7%AB%AF/" itemprop="url" rel="index"><span itemprop="name">后端</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>例如转发到服务器3002端口,域名Nginx配置:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">location / {</span><br><span class="line"> allow all;</span><br><span class="line"> proxy_pass http://localhost:3002;</span><br><span class="line"> proxy_set_header Host $http_host;</span><br><span class="line"> proxy_set_header Cookie $http_cookie;</span><br><span class="line"> proxy_set_header X-Real-IP $remote_addr;</span><br><span class="line"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line"> proxy_set_header X-Forwarded-Proto $scheme;</span><br><span class="line">}</span><br><span class="line">location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$</span><br><span class="line">{</span><br><span class="line"> proxy_pass http://localhost:3002;</span><br><span class="line">}</span><br><span class="line">location ~ .*\.(js|css)?$</span><br><span class="line">{</span><br><span class="line"> proxy_pass http://localhost:3002;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<p>如果使用宝塔面板,在[伪静态]部分配置。</p>
<p>测试,通过node test.js来listen3002端口,访问域名后显示test.js返回值:Hello World</p>
<p>test.js:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">const http = require('http');</span><br><span class="line"></span><br><span class="line">const server = http.createServer((req, res) => {</span><br><span class="line"> res.statusCode = 200;</span><br><span class="line"> res.setHeader('Content-Type', 'text/plain');</span><br><span class="line"> res.end('Hello World\n');</span><br><span class="line">});</span><br><span class="line"></span><br><span class="line">server.listen(3002, () => {</span><br><span class="line"> console.log('Server running at http://localhost:3002/');</span><br><span class="line">});</span><br></pre></td></tr></table></figure>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<nav class="pagination">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><span class="space">…</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-angle-right" aria-label="下一页"></i></a>
</nav>
</div>
<script>
window.addEventListener('tabs:register', () => {
let { activeClass } = CONFIG.comments;
if (CONFIG.comments.storage) {
activeClass = localStorage.getItem('comments_active') || activeClass;
}
if (activeClass) {
let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
if (activeTab) {
activeTab.click();
}
}
});
if (CONFIG.comments.storage) {
window.addEventListener('tabs:click', event => {
if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
let commentClass = event.target.classList[1];
localStorage.setItem('comments_active', commentClass);
});
}
</script>
</div>
<div class="toggle sidebar-toggle">
<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>
<aside class="sidebar">
<div class="sidebar-inner">
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">