-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1908 lines (1204 loc) · 55 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="en">
<head hexo-theme='https://github.com/volantis-x/hexo-theme-volantis/tree/4.2.0'>
<meta charset="utf-8">
<!-- SEO相关 -->
<meta name="robots" content="index,follow">
<!-- 渲染优化 -->
<meta http-equiv='x-dns-prefetch-control' content='on' />
<link rel='dns-prefetch' href='https://cdn.jsdelivr.net'>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="HandheldFriendly" content="True" >
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- 页面元数据 -->
<title>zhiPeng</title>
<!-- feed -->
<!-- import meta -->
<!-- link -->
<link rel="shortcut icon" type='image/x-icon' href="/img/webTitle.png">
<!-- import link -->
<link rel="stylesheet" href="/css/first.css">
<link rel="stylesheet" href="/css/style.css" media="print" onload="this.media='all';this.onload=null">
<noscript><link rel="stylesheet" href="/css/style.css"></noscript>
<script id="loadcss"></script>
</head>
<body>
<header id="l_header" class="l_header always shadow blur floatable " >
<div class='container'>
<div id='wrapper'>
<div class='nav-sub'>
<p class="title"></p>
<ul class='switcher nav-list-h m-phone' id="pjax-header-nav-list">
<li><a id="s-comment" class="fas fa-comments fa-fw" target="_self" href='javascript:void(0)'></a></li>
<li><a id="s-toc" class="s-toc fas fa-list fa-fw" target="_self" href='javascript:void(0)'></a></li>
</ul>
</div>
<div class="nav-main">
<a class="title flat-box" target="_self" href='/'>
<img no-lazy class='logo' src='/img/webTitle.png'/>
</a>
<div class='menu navigation'>
<ul class='nav-list-h m-pc'>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/
id="home"
>
<i class='fas fa-rss fa-fw'></i>博文
</a>
</li>
<li class='header'>
<i class='fas fa-archive fa-fw'></i>项目
</li>
<li class='header'>
<i class='fas fa-archive fa-fw'></i>相册
</li>
<li class='header'>
<i class='fas fa-info-circle fa-fw'></i>关于
</li>
</ul>
</div>
<div class="m_search">
<form name="searchform" class="form u-search-form">
<i class="icon fas fa-search fa-fw"></i>
<input type="text" class="input u-search-input" placeholder="搜索" />
</form>
</div>
<ul class='switcher nav-list-h m-phone'>
<li><a class="s-search fas fa-search fa-fw" target="_self" href='javascript:void(0)'></a></li>
<li>
<a class="s-menu fas fa-bars fa-fw" target="_self" href='javascript:void(0)'></a>
<ul class="menu-phone list-v navigation white-box">
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/
id="home"
>
<i class='fas fa-rss fa-fw'></i>博文
</a>
</li>
<li class='header'>
<i class='fas fa-archive fa-fw'></i>项目
</li>
<li class='header'>
<i class='fas fa-archive fa-fw'></i>相册
</li>
<li class='header'>
<i class='fas fa-info-circle fa-fw'></i>关于
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</header>
<div id="l_body">
<div id="l_cover">
<div id="half" class='cover-wrapper dock' style="display: ;">
<div id='cover-backstretch'></div>
<div class='cover-body'>
<div class='top'>
<img no-lazy class='logo' src='/img/centerLogo.gif'/>
</div>
<div class='bottom'>
<div class='menu navigation'>
<div class='list-h'>
<a href="/"
id="home">
<img src='https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f4f0.svg'><p>博客</p>
</a>
<a href="/photo/"
id="photo">
<img src='https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f516.svg'><p>相册</p>
</a>
<a href="/projects/"
id="projects">
<img src='https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f5c3.svg'><p>项目</p>
</a>
<a href="/"
id="home">
<img src='https://cdn.jsdelivr.net/gh/twitter/[email protected]/assets/svg/1f396.svg'><p>示例</p>
</a>
</div>
</div>
</div>
</div>
<div id="scroll-down" style="display: none;"><i class="fa fa-chevron-down scroll-down-effects"></i></div>
</div>
</div>
<div id='safearea'>
<div class='body-wrapper' id="pjax-container">
<div class='l_main'>
<section class="post-list">
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<div class='headimg-div'>
<a class='headimg-a' href="/2021/04/24/%E9%9F%B3%E8%A7%86%E9%A2%91/H.264%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%80%BB%E7%BB%93/">
<img class='headimg' src='https://zip-link.github.io/Image/H264基础封面.jpg'/>
</a>
</div>
<h2 class="article-title" >
<a href="/2021/04/24/%E9%9F%B3%E8%A7%86%E9%A2%91/H.264%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%80%BB%E7%BB%93/">
H.264基础知识总结
</a>
</h2>
<div class='md'>
<p>H264是视频编解码格式;学习H264之前首先要搞明白一个问题,视频为什么要编码,编码传输不行吗?视频就是一堆图片按时间顺序播放,在编码标准出现之前,不经过编码的原始码流,可以这么理解成就是携带时间戳的图片。可以随便找个图片看下他的大小小则几十K,比较清晰的甚至需要十几M。这么大的数据量造成了,视频在存储时会耗费大量的存储空间,网络传输时占用大量带宽和流量,而编码就是为了减少视频的数据量,减少存储和网络中浪费的资源,在发送端做压缩在接收端做解压;接收端播放时将压缩后的数据量依据编解码算法和编解码规则,解码出来的视频和不经过压缩后传输的效果做到几乎一样;<strong>编码的本质是压缩</strong></p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2021-04-24</time>
<span class="dot"></span>
<a class="category-link" href="/categories/%E9%9F%B3%E8%A7%86%E9%A2%91/">-音视频</a>
</div>
<div>
<a class='readmore' href='/2021/04/24/%E9%9F%B3%E8%A7%86%E9%A2%91/H.264%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E6%80%BB%E7%BB%93/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<div class='headimg-div'>
<a class='headimg-a' href="/2021/01/31/embedded/IOT/MQTT%E2%80%94%E2%80%94%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8/">
<img class='headimg' src='https://zip-link.github.io/Image/MQTT_headimg.png'/>
</a>
</div>
<h2 class="article-title" >
<a href="/2021/01/31/embedded/IOT/MQTT%E2%80%94%E2%80%94%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8/">
MQTT——快速搭建客户端和服务器
</a>
</h2>
<div class='md'>
<p>MQTT是物联网中应用及其广泛的应用协议,mqtt由于其带宽低和基于发布订阅的模式的优点,被各物联网平台推广使用。MQTT首先有三个角色:订阅者、发布者、中间代理。订阅者通过订阅指定消息类型可收到发布者发布的制定类型消息。服务器作为代理做消息的转发。这种基于发布订阅的模式与物联网中边缘终端1对N的特征完全匹配。不得不说MQTT协议天生为物联网而生。</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2021-01-31</time>
<span class="dot"></span>
<a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/">嵌入式</a><span class="sep"></span><a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/IOT/">IOT</a>
</div>
<div>
<a class='readmore' href='/2021/01/31/embedded/IOT/MQTT%E2%80%94%E2%80%94%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%92%8C%E6%9C%8D%E5%8A%A1%E5%99%A8/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<div class='headimg-div'>
<a class='headimg-a' href="/2021/01/31/linux/%E5%86%85%E5%AD%98/%E6%B5%85%E8%B0%88%E5%86%85%E5%AD%98%E5%87%BD%E6%95%B0%E6%A0%88%E4%B8%AD%E7%9A%84%E6%A0%88%E5%B8%A7(ARM)/">
<img class='headimg' src='https://img.vim-cn.com/d9/a9af7dc49fc0af8ca3e6dd2450a2f7095a87db.png'/>
</a>
</div>
<h2 class="article-title" >
<a href="/2021/01/31/linux/%E5%86%85%E5%AD%98/%E6%B5%85%E8%B0%88%E5%86%85%E5%AD%98%E5%87%BD%E6%95%B0%E6%A0%88%E4%B8%AD%E7%9A%84%E6%A0%88%E5%B8%A7(ARM)/">
浅谈内存函数栈中的栈帧(arm)
</a>
</h2>
<div class='md'>
<p>栈是函数调用的实现基础,而栈帧就是函数调用栈中的一个基础知识点。对栈帧理解后能更好的理解函数运行过程。<br>简单来理解,程序运行过程中,PC指针每遇到一个函数,栈都会新增一个栈帧。栈帧记录着函数的<strong>参数</strong>,<strong>返回地址</strong>,父函数的<strong>栈底指针</strong>和自身相关的<strong>局部变量</strong>等。理解栈帧前先明确以下几个寄存器概念:</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2021-01-31</time>
<span class="dot"></span>
<a class="category-link" href="/categories/Linux/">Linux</a><span class="sep"></span><a class="category-link" href="/categories/Linux/%E5%86%85%E5%AD%98/">内存</a>
</div>
<div>
<a class='readmore' href='/2021/01/31/linux/%E5%86%85%E5%AD%98/%E6%B5%85%E8%B0%88%E5%86%85%E5%AD%98%E5%87%BD%E6%95%B0%E6%A0%88%E4%B8%AD%E7%9A%84%E6%A0%88%E5%B8%A7(ARM)/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<h2 class="article-title" >
<a href="/2021/01/01/2020%E4%B8%8D%E8%AE%B2%E6%AD%A6%E5%BE%B7%EF%BC%8C2021%E8%83%BD%E5%90%A6%E6%94%B9%E5%8F%98/">
2020不讲武德,2021能否改变
</a>
</h2>
<div class='md'>
<p>2020过的真快,可能是因为疫情原因,一年到头没怎么出门,现在回想这一年基本一直在工作。没有什么时间和朋友出去转转的机会。当然离家太远也没什么交心的朋友,也可能是工作之后每年都是这样吧。</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2021-01-01</time>
</div>
<div>
<a class='readmore' href='/2021/01/01/2020%E4%B8%8D%E8%AE%B2%E6%AD%A6%E5%BE%B7%EF%BC%8C2021%E8%83%BD%E5%90%A6%E6%94%B9%E5%8F%98/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<div class='headimg-div'>
<a class='headimg-a' href="/2020/12/27/embedded/IOT/esp8266_1/">
<img class='headimg' src='https://img-blog.csdnimg.cn/20200704154211511.JPG?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMjgxNjAx,size_16,color_FFFFFF,t_70#pic_center'/>
</a>
</div>
<h2 class="article-title" >
<a href="/2020/12/27/embedded/IOT/esp8266_1/">
物联网利器——ESP8266(入门及环境搭建)
</a>
</h2>
<div class='md'>
<p>早就听说过,8266这款MCU,B站上也看多过好多人用这个板子DIY自己的作品,所以前段时间从某宝购入了一款全引脚引出的8266开发板,核心板本身就集成WIFI和Flash,整个板子除了核心板和串口转USB芯片,没别的东西,看起来比较小巧,当然还有比这更小的只有核心板的芯片,不过那种没有几个IO口可用,某宝也是有卖的。</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-12-27</time>
<span class="dot"></span>
<a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/">嵌入式</a><span class="sep"></span><a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/IOT/">IOT</a>
</div>
<div>
<a class='readmore' href='/2020/12/27/embedded/IOT/esp8266_1/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<h2 class="article-title" >
<a href="/2020/12/27/embedded/IOT/esp8266_2/">
8266驱动spi屏ST7735小结
</a>
</h2>
<div class='md'>
<p>ESP8266+arduino确实是一个神奇的组合,很适合新人入手,不过对于从51或者32转型的过来人,使用起来颇有些崴脚。首先是开源库的存在,依托arduino的开源,在IDE或者github有很多的开源库使用,我猜测现有的一些驱动,估计都能找到驱动库,具体怎么找可能就要自己花费些时间了。</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-12-27</time>
<span class="dot"></span>
<a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/">嵌入式</a><span class="sep"></span><a class="category-link" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/IOT/">IOT</a>
</div>
<div>
<a class='readmore' href='/2020/12/27/embedded/IOT/esp8266_2/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<div class='headimg-div'>
<a class='headimg-a' href="/2020/12/27/coding/%E7%BA%BF%E7%A8%8B%E6%B1%A0/%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0%E6%80%BB%E7%BB%93%E2%80%94%E2%80%94%E7%BA%BF%E7%A8%8B%E6%B1%A0/">
<img class='headimg' src='https://img-blog.csdnimg.cn/20200830154514733.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMjgxNjAx,size_16,color_FFFFFF,t_70#pic_center'/>
</a>
</div>
<h2 class="article-title" >
<a href="/2020/12/27/coding/%E7%BA%BF%E7%A8%8B%E6%B1%A0/%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0%E6%80%BB%E7%BB%93%E2%80%94%E2%80%94%E7%BA%BF%E7%A8%8B%E6%B1%A0/">
基础学习总结——线程池
</a>
</h2>
<div class='md'>
<p>经常听到线程池的概念,不过在实际工作和项目里没有应用过线程池。线程池可能是作为服务端的开发经常用到的技术架构,所以最近我也通过网络简单的学习了下线程池的概念,稍微理解了线程池的应用场景。</p>
<p>在高并发的服务环境下,存在多个客户端访问服务端相同服务的场景,而传统方式,是为多客户端创建一一对应的处理线程,这在高并发场景下极大的耗费服务端的资源。为了解决这类问题,服务端可使用线程池,为同一服务创建相同的<strong>线程队列</strong>,这些线程循环处理工作队列中的任务,当有客户端需要这种服务时将增加任务到<strong>工作队列</strong>中。</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-12-27</time>
<span class="dot"></span>
<a class="category-link" href="/categories/Linux/">Linux</a><span class="sep"></span><a class="category-link" href="/categories/Linux/%E7%BA%BF%E7%A8%8B%E6%B1%A0/">线程池</a>
</div>
<div>
<a class='readmore' href='/2020/12/27/coding/%E7%BA%BF%E7%A8%8B%E6%B1%A0/%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0%E6%80%BB%E7%BB%93%E2%80%94%E2%80%94%E7%BA%BF%E7%A8%8B%E6%B1%A0/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<h2 class="article-title" >
<a href="/2020/08/23/linux/%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91%E4%B8%AD%E5%B8%B8%E7%94%A8%E7%9A%84%E8%BF%9B%E7%A8%8B%E7%BA%BF%E7%A8%8B%E9%80%9A%E4%BF%A1/">
应用开发中常用的进程线程通信
</a>
</h2>
<div class='md'>
<p>进程通信是学习应用编程的基础,尤其是对于大型嵌入式项目而言,熟悉常用的通信方式是能写好代码和能看懂代码的前提。其实在大学刚接触linux就学习过进程间的几种通信方式,不过由于当时接触的项目都比较简单,导致没能对这几种通信有比较好的理解和应用。工作之后有了大量的代码阅读量,感觉对几种通信的应用有了新的认识,所以坐下简单的总结。</p>
<ol>
<li>共享内存</li>
<li>信号量</li>
<li>消息队列</li>
<li>管道
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-08-23</time>
<span class="dot"></span>
<a class="category-link" href="/categories/Linux/">Linux</a><span class="sep"></span><a class="category-link" href="/categories/Linux/%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/">应用开发</a>
</div>
<div>
<a class='readmore' href='/2020/08/23/linux/%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91%E4%B8%AD%E5%B8%B8%E7%94%A8%E7%9A%84%E8%BF%9B%E7%A8%8B%E7%BA%BF%E7%A8%8B%E9%80%9A%E4%BF%A1/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<h2 class="article-title" >
<a href="/2020/08/16/linux/%E5%86%85%E6%A0%B8/">
linux开机自启脚本
</a>
</h2>
<div class='md'>
<p>系统初始化完成后会运行初始化脚本 rc.local,想要实现开机自动启动某个功能,可以在这个脚本增加些执行命令。</p>
<p>rc.local/rc.sysinit,一般为路径为/etc/rc.d/rc.local或/etc/rc.d/rc.sysinit</p>
<p>可以直接在脚本退出之前执行某个脚本或执行某个shell命令</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-08-16</time>
<span class="dot"></span>
<a class="category-link" href="/categories/Linux/">Linux</a><span class="sep"></span><a class="category-link" href="/categories/Linux/%E5%86%85%E6%A0%B8%E5%BA%94%E7%94%A8/">内核应用</a>
</div>
<div>
<a class='readmore' href='/2020/08/16/linux/%E5%86%85%E6%A0%B8/'>
Read More
</a>
</div>
</div>
</div>
</div>
<div class='post-wrapper'>
<div class="post post-v3 white-box reveal shadow">
<h2 class="article-title" >
<a href="/2020/08/16/Server/ajax/%E5%86%85%E6%A0%B8/">
linux开机自启脚本
</a>
</h2>
<div class='md'>
<p>系统初始化完成后会运行初始化脚本 rc.local,想要实现开机自动启动某个功能,可以在这个脚本增加些执行命令。</p>
<p>rc.local/rc.sysinit,一般为路径为/etc/rc.d/rc.local或/etc/rc.d/rc.sysinit</p>
<p>可以直接在脚本退出之前执行某个脚本或执行某个shell命令</p>
</div>
<div class='meta-v3' line_style='solid'>
<div>
<time>2020-08-16</time>
<span class="dot"></span>
<a class="category-link" href="/categories/Linux/">Linux</a><span class="sep"></span><a class="category-link" href="/categories/Linux/%E5%86%85%E6%A0%B8%E5%BA%94%E7%94%A8/">内核应用</a>
</div>
<div>
<a class='readmore' href='/2020/08/16/Server/ajax/%E5%86%85%E6%A0%B8/'>
Read More
</a>
</div>
</div>
</div>
</div>
</section>
<br>
<div class="prev-next">
<p class="current">
1 / 3
</p>
<a class="next" rel="next" href="/page/2/">
<section class="post next white-box shadow">
Next <i class="fas fa-chevron-right" aria-hidden="true"></i>
</section>
</a>
</div>
</div>
<aside class='l_side'>
<section class="widget blogger shadow desktop mobile">
<div class='content'>
<a class='avatar flat-box rectangle' href='/about/'>
<img no-lazy src='/img/headPhoto.jpg'/>
</a>
<div class='text'>
<h2>zhiPeng</h2>
</div>
</div>
</section>
<section class="widget category shadow desktop">
<header>
<a href='/categories'><i class="fas fa-folder-open fa-fw" aria-hidden="true"></i><span class='name'>文章分类</span></a>
</header>
<div class='content'>
<ul class="entry navigation">
<li><a class="flat-box"
title="/categories/3D/" href="/categories/3D/"
id="categories3D"
><div class='name'>3D</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/Linux/" href="/categories/Linux/"
id="categoriesLinux"
><div class='name'>Linux</div><div class='badge'>(5)</div></a></li>
<li><a class="flat-box child"
title="/categories/Linux/%E5%86%85%E5%AD%98/" href="/categories/Linux/%E5%86%85%E5%AD%98/"
id="categoriesLinuxE58685E5AD98"
><div class='name'>内存</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box child"
title="/categories/Linux/%E5%86%85%E6%A0%B8%E5%BA%94%E7%94%A8/" href="/categories/Linux/%E5%86%85%E6%A0%B8%E5%BA%94%E7%94%A8/"
id="categoriesLinuxE58685E6A0B8E5BA94E794A8"
><div class='name'>内核应用</div><div class='badge'>(2)</div></a></li>
<li><a class="flat-box child"
title="/categories/Linux/%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/" href="/categories/Linux/%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/"
id="categoriesLinuxE5BA94E794A8E5BC80E58F91"
><div class='name'>应用开发</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box child"
title="/categories/Linux/%E7%BA%BF%E7%A8%8B%E6%B1%A0/" href="/categories/Linux/%E7%BA%BF%E7%A8%8B%E6%B1%A0/"
id="categoriesLinuxE7BABFE7A88BE6B1A0"
><div class='name'>线程池</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/github/" href="/categories/github/"
id="categoriesgithub"
><div class='name'>github</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/"
id="categoriesE5B58CE585A5E5BC8F"
><div class='name'>嵌入式</div><div class='badge'>(11)</div></a></li>
<li><a class="flat-box child"
title="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/IOT/" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/IOT/"
id="categoriesE5B58CE585A5E5BC8FIOT"
><div class='name'>IOT</div><div class='badge'>(3)</div></a></li>
<li><a class="flat-box child"
title="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/stm32/" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/stm32/"
id="categoriesE5B58CE585A5E5BC8Fstm32"
><div class='name'>stm32</div><div class='badge'>(2)</div></a></li>
<li><a class="flat-box child"
title="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/%E5%8D%9A%E5%AE%A2%E6%9C%8D%E5%8A%A1/" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/%E5%8D%9A%E5%AE%A2%E6%9C%8D%E5%8A%A1/"
id="categoriesE5B58CE585A5E5BC8FE58D9AE5AEA2E69C8DE58AA1"
><div class='name'>博客服务</div><div class='badge'>(5)</div></a></li>
<li><a class="flat-box child"
title="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/%E8%AF%AD%E9%9F%B3%E5%8A%A9%E6%89%8B/" href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/%E8%AF%AD%E9%9F%B3%E5%8A%A9%E6%89%8B/"
id="categoriesE5B58CE585A5E5BC8FE8AFADE99FB3E58AA9E6898B"
><div class='name'>语音助手</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/%E6%9C%8D%E5%8A%A1%E5%99%A8/" href="/categories/%E6%9C%8D%E5%8A%A1%E5%99%A8/"
id="categoriesE69C8DE58AA1E599A8"
><div class='name'>服务器</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box child"
title="/categories/%E6%9C%8D%E5%8A%A1%E5%99%A8/ajax/" href="/categories/%E6%9C%8D%E5%8A%A1%E5%99%A8/ajax/"
id="categoriesE69C8DE58AA1E599A8ajax"
><div class='name'>ajax</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/%E7%BC%96%E7%A0%81/" href="/categories/%E7%BC%96%E7%A0%81/"
id="categoriesE7BC96E7A081"
><div class='name'>编码</div><div class='badge'>(1)</div></a></li>
<li><a class="flat-box"
title="/categories/%E9%9F%B3%E8%A7%86%E9%A2%91/" href="/categories/%E9%9F%B3%E8%A7%86%E9%A2%91/"
id="categoriesE99FB3E8A786E9A291"
><div class='name'>-音视频</div><div class='badge'>(1)</div></a></li>
</ul>
</div>
</section>
<section class="widget tagcloud shadow desktop">
<header>
<a href='/tags/'><i class="fas fa-tags fa-fw" aria-hidden="true"></i><span class='name'>热门标签</span></a>
</header>
<div class='content'>
<a href="/tags/%E9%9F%B3%E8%A7%86%E9%A2%91-h-264/" style="font-size: 14px; color: #999">-音视频 -h.264</a> <a href="/tags/3D%E6%89%93%E5%8D%B0/" style="font-size: 14px; color: #999">3D打印</a> <a href="/tags/Hexo/" style="font-size: 24px; color: #555">Hexo</a> <a href="/tags/I2C/" style="font-size: 14px; color: #999">I2C</a> <a href="/tags/Linux/" style="font-size: 24px; color: #555">Linux</a> <a href="/tags/MQTT/" style="font-size: 14px; color: #999">MQTT</a> <a href="/tags/Siri/" style="font-size: 14px; color: #999">Siri</a> <a href="/tags/ajax/" style="font-size: 14px; color: #999">ajax</a> <a href="/tags/github/" style="font-size: 14px; color: #999">github</a> <a href="/tags/stm32/" style="font-size: 16.5px; color: #888">stm32</a> <a href="/tags/%E4%BB%A3%E7%A0%81%E5%BA%93/" style="font-size: 14px; color: #999">代码库</a> <a href="/tags/%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F/" style="font-size: 14px; color: #999">全局变量</a> <a href="/tags/%E5%86%85%E5%AD%98/" style="font-size: 14px; color: #999">内存</a> <a href="/tags/%E5%86%85%E6%A0%B8/" style="font-size: 16.5px; color: #888">内核</a> <a href="/tags/%E5%8D%95%E7%89%87%E6%9C%BA/" style="font-size: 21.5px; color: #666">单片机</a> <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%9C%8D%E5%8A%A1/" style="font-size: 24px; color: #555">博客服务</a> <a href="/tags/%E5%B5%8C%E5%85%A5%E5%BC%8F/" style="font-size: 24px; color: #555">嵌入式</a> <a href="/tags/%E5%BB%BA%E6%A8%A1/" style="font-size: 14px; color: #999">建模</a> <a href="/tags/%E7%89%A9%E8%81%94%E7%BD%91/" style="font-size: 19px; color: #777">物联网</a> <a href="/tags/%E7%BA%BF%E7%A8%8B%E6%B1%A0/" style="font-size: 14px; color: #999">线程池</a> <a href="/tags/%E8%AF%AD%E9%9F%B3%E5%8A%A9%E6%89%8B/" style="font-size: 14px; color: #999">语音助手</a> <a href="/tags/%E8%B0%83%E8%AF%95%E5%99%A8/" style="font-size: 14px; color: #999">调试器</a> <a href="/tags/%E8%BF%9B%E7%A8%8B%E9%80%9A%E4%BF%A1/" style="font-size: 14px; color: #999">进程通信</a>
</div>
</section>
<section class="widget text shadow desktop mobile">
<header>
<a target="_blank" rel="noopener" href='https://github.com/xaoxuu/'><i class="fab fa-github fa-fw" aria-hidden="true"></i><span class='name'>公告牌</span></a>