-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
965 lines (712 loc) · 33.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="referrer" content="no-referrer-when-downgrade">
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<script>if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMode)) window.location.href="https://support.dmeng.net/upgrade-your-browser.html?referrer="+encodeURIComponent(window.location.href); </script>
<link rel="shortcut icon" href="/images/favicon.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.1/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/vuetify@2.2.30/dist/vuetify.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/main.css">
<script>
if (typeof MathJax === 'undefined') {
window.MathJax = {
loader: {
load: ['[tex]/mhchem'],
source: {
'[tex]/amsCd': '[tex]/amscd',
'[tex]/AMScd': '[tex]/amscd'
}
},
tex: {
inlineMath: {'[+]': [['$', '$']]},
packages: {'[+]': ['mhchem']},
tags: 'ams'
},
options: {
renderActions: {
findScript: [10, doc => {
document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
const display = !!node.type.match(/; *mode=display/);
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
const text = document.createTextNode('');
node.parentNode.replaceChild(text, node);
math.start = {node: text, delim: '', n: 0};
math.end = {node: text, delim: '', n: 0};
doc.math.push(math);
});
}, '', false],
insertedScript: [200, () => {
document.querySelectorAll('mjx-container').forEach(node => {
let target = node.parentNode;
if (target.nodeName.toLowerCase() === 'li') {
target.parentNode.classList.add('has-jax');
}
});
}, '', false]
}
}
};
(function () {
var script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
script.defer = true;
document.head.appendChild(script);
})();
} else {
MathJax.startup.document.state(0);
MathJax.texReset();
MathJax.typeset();
}
</script>
<title>
YHKL'S BLOG
</title>
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div id="app">
<v-app>
<v-content id="page">
<v-container fluid>
<v-row>
<v-col cols="2" class="d-none d-md-block">
<div id="sidebar" class="float-right">
<a href="/" rel="home">
<v-avatar size=96>
<img id="logo" src="/images/avatar.png">
</v-avatar>
</a>
<v-divider></v-divider>
<div class="mini-menu">
<v-btn icon href="/">
<v-icon>home</v-icon>
</v-btn>
<v-btn icon href="/categories/">
<v-icon>category</v-icon>
</v-btn>
<v-btn icon href="/tags/">
<v-icon>bookmark</v-icon>
</v-btn>
<v-btn icon @click="SetNightMode">
<v-icon>{{ nightMode }}</v-icon>
</v-btn>
</div>
<v-list id="main-menu" class="font-weight-bold" flat>
<v-list-item href=" /" link>
<v-list-item-icon>
<v-icon>
home
</v-icon>
</v-list-item-icon>
<v-list-item-content>
Home
</v-list-item-content>
</v-list-item>
<v-list-item href=" /archives/" link>
<v-list-item-icon>
<v-icon>
archive
</v-icon>
</v-list-item-icon>
<v-list-item-content>
Archives
</v-list-item-content>
</v-list-item>
<v-list-item href=" /about/" link>
<v-list-item-icon>
<v-icon>
account_circle
</v-icon>
</v-list-item-icon>
<v-list-item-content>
About
</v-list-item-content>
</v-list-item>
<v-list-item href=" /links/" link>
<v-list-item-icon>
<v-icon>
article
</v-icon>
</v-list-item-icon>
<v-list-item-content>
link
</v-list-item-content>
</v-list-item>
</v-list>
<v-divider></v-divider>
<v-list id="sub-menu" class="font-weight-medium" dense>
<v-list-item href="/categories/Vue/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="1">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
Vue
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
<v-list-item href="/categories/Linux/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="7">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
Linux
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
<v-list-item href="/categories/Design-Pattern/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="1">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
Design Pattern
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
<v-list-item href="/categories/Nginx/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="1">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
Nginx
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
<v-list-item href="/categories/Zabbix/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="1">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
Zabbix
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
<v-list-item href="/categories/PostgreSQL/" link>
<v-badge :value="menuHover" transition="slide-y-transition" inline
content="1">
<v-hover v-model="menuHover">
<v-list-item-content>
<span>
PostgreSQL
</span>
</v-list-item-content>
</v-hover>
</v-badge>
</v-list-item>
</v-list>
<div id="footer">
<div class="footer-social">
<v-btn icon href=" /kaiyang939325@gmail.com" target="_blank">
<v-icon>
fas fa-envelope
</v-icon>
</v-btn>
<v-btn icon href=" https://github.com/yhkl-dev" target="_blank">
<v-icon>
fab fa-github
</v-icon>
</v-btn>
<v-btn icon href=" https://steamcommunity.com/profiles/76561198346798163" target="_blank">
<v-icon>
fab fa-steam
</v-icon>
</v-btn>
</div>
<v-divider></v-divider>
<div class="footer-content">
<span id="busuanzi_container_site_uv" style="display: none;">
Total Visitors <span id="busuanzi_value_site_uv"></span>
</span>
<br>
<span>Theme: <a
target="_blank" rel="noopener" href="https://github.com/kb1000fx/hexo-theme-insulin">Insulin</a></span><br>
<span>Powered by <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a></span><br>
<span>
©
2015 -
2021
yhkl
</span>
</div>
</div>
</div>
</v-col>
<v-col cols="12" md="10">
<v-row>
<v-col cols="12" md="8" align-self="end">
<div id="site-header">
<div id="site-title">
<a href="/" rel="home">
YHKL'S BLOG
</a>
</div>
<div id="site-description">
</div>
<div id="mobile-menu" class="d-block d-md-none">
<v-text-field label="Type to search" data-src="search.xml"
v-model="searchHeaderValue" prepend-inner-icon="search" clearable clear-icon="clear"
@keydown.enter="EnterSearch(searchHeaderValue,false)"></v-text-field>
<div class="mobile-mini-menu">
<v-btn icon href="/">
<v-icon>home</v-icon>
</v-btn>
<v-btn icon href="/categories/">
<v-icon>category</v-icon>
</v-btn>
<v-btn icon href="/tags/">
<v-icon>bookmark</v-icon>
</v-btn>
<v-btn icon @click="SetNightMode">
<v-icon>{{ nightMode }}</v-icon>
</v-btn>
<v-btn icon href=" /">
<v-icon>
home
</v-icon>
</v-btn>
<v-btn icon href=" /archives/">
<v-icon>
archive
</v-icon>
</v-btn>
<v-btn icon href=" /about/">
<v-icon>
account_circle
</v-icon>
</v-btn>
<v-btn icon href=" /links/">
<v-icon>
article
</v-icon>
</v-btn>
</div>
</div>
</div>
</v-col>
<v-col cols="4" align-self="end" class="d-none d-md-block">
<v-col align-self="end">
<v-text-field label="Type to search" data-src="search.xml" v-model="searchHeaderValue"
prepend-icon="search" clearable clear-icon="clear"
@keydown.enter="EnterSearch(searchHeaderValue,false)"></v-text-field>
</v-col>
</v-col>
</v-row>
<v-card class="elevation-2 index-card">
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2021-10-30
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/Linux/ >Linux</a>
</span>
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/Operation/ >Operation</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/categories/PostgreSQL/">PostgreSQL></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2021/10/30/Operation/">PostgreSQL daily Operation</a>
</div>
<div class="index-article-content">
monitor, backup/restore. user create etc…
</div>
<div class="index-article-readmore ">
<v-btn text href="/2021/10/30/Operation/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2021-10-30
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/Linux/ >Linux</a>
</span>
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/Nginx/ >Nginx</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/categories/Nginx/">Nginx></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2021/10/30/Nginx%E7%AB%AF%E5%8F%A3%E8%BD%AC%E5%8F%91/">Nginx端口转发</a>
</div>
<div class="index-article-content">
如何使用Nginx进行端口转发, stream模块使用
</div>
<div class="index-article-readmore ">
<v-btn text href="/2021/10/30/Nginx%E7%AB%AF%E5%8F%A3%E8%BD%AC%E5%8F%91/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2021-06-07
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/vue/ >vue</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/categories/Vue/">Vue></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2021/06/07/360-%E6%9E%81%E9%80%9F%E6%A8%A1%E5%BC%8F/">360 极速模式</a>
</div>
<div class="index-article-content">
360浏览器如何设置急速模式
</div>
<div class="index-article-readmore ">
<v-btn text href="/2021/06/07/360-%E6%9E%81%E9%80%9F%E6%A8%A1%E5%BC%8F/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2021-02-06
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/design-pattern/ >design pattern</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/categories/Design-Pattern/">Design Pattern></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2021/02/06/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%88%E4%BA%8C%EF%BC%89/">设计模式(二)</a>
</div>
<div class="index-article-content">
1.什么是设计模式 设计模式是对被用来在特性场景下解决一般设计问题的类和相互通信的对象的描述
</div>
<div class="index-article-readmore ">
<v-btn text href="/2021/02/06/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F%EF%BC%88%E4%BA%8C%EF%BC%89/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-08-24
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/docker/ >docker</a>
</span>
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/oracle/ >oracle</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/08/24/Docker-Oracle-11g%E9%85%8D%E7%BD%AE/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/08/24/Docker-Oracle-11g%E9%85%8D%E7%BD%AE/">Docker Oracle 11g配置</a>
</div>
<div class="index-article-content">
1.拉取Oracle镜像12345# docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g# docker imagesregistry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g latest 3fa112fd3642 4 years ago 6.85GB
2.创建容器1# docker run -d -p 1521:1521 --name oracle11g r...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/08/24/Docker-Oracle-11g%E9%85%8D%E7%BD%AE/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-08-24
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/python/ >python</a>
</span>
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/code/ >code</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/08/24/Python%E5%BC%82%E5%B8%B8%E7%B1%BB%E7%9A%84%E5%B1%82%E6%AC%A1%E7%BB%93%E6%9E%84/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/08/24/Python%E5%BC%82%E5%B8%B8%E7%B1%BB%E7%9A%84%E5%B1%82%E6%AC%A1%E7%BB%93%E6%9E%84/">Python异常类的层次结构</a>
</div>
<div class="index-article-content">
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- StopAsyncIteration +-- ArithmeticError | +-- Float...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/08/24/Python%E5%BC%82%E5%B8%B8%E7%B1%BB%E7%9A%84%E5%B1%82%E6%AC%A1%E7%BB%93%E6%9E%84/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-08-15
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/Linux/ >Linux</a>
</span>
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/system/ >system</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/08/15/Linux-strace%E4%BD%BF%E7%94%A8/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/08/15/Linux-strace%E4%BD%BF%E7%94%A8/">Linux strace使用</a>
</div>
<div class="index-article-content">
在操作系统运维中会出现程序或系统命令运行失败,通过报错和日志无法定位问题根本原因
比如keepalive脚本执行失败,但是体现在日志中是其他提示,没有相关报错
如何在没有内核或程序代码的情况下查看系统调用的进程
strace工具介绍
strace是一个非常有用的诊断、说明和调试工具,Linux系统管理员可以在不需要源代码的情况下即可跟踪系统调用情况
strace显示有关进程的系统调用的信息,这可以帮助确定一个程序使用的哪个函数,当然在系统出现问题时可以使用strace定位系统调用过程中失败的原因,这是定位系统问题的很好的解决办法
参数解析
-c
统计每一体统调用所执行的时间,次数和...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/08/15/Linux-strace%E4%BD%BF%E7%94%A8/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-06-06
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/PostgreSQL/ >PostgreSQL</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/06/06/PostgreSQL-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/06/06/PostgreSQL-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/">PostgreSQL 常用命令</a>
</div>
<div class="index-article-content">
连接数据库, 默认的用户和数据库是postgres
1psql -U user -d dbname
切换数据库,相当于mysql的use dbname
1\c dbname
列举数据库,相当于mysql的show databases
1\l
列举表,相当于mysql的show tables
1\dt
查看表结构,相当于desc tblname,show columns from tbname
1\d tblname
查看索引
1\di
创建数据库:
1create database [数据库名];
删除数据库:
1drop database [数据库名];
重命名一...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/06/06/PostgreSQL-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-06-06
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/golang/ >golang</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/06/06/Golang-%E5%BC%80%E5%90%AFgo-mod/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/06/06/Golang-%E5%BC%80%E5%90%AFgo-mod/">Golang 开启go mod</a>
</div>
<div class="index-article-content">
1. 开启Go module1.11和1.12版本将下面两个设置添加到系统的环境变量中
12GO111MODULE=onGOPROXY=https://goproxy.io
1.13版本之后
需要注意的是这种方式并不会覆盖之前的配置,有点坑,你需要先把系统的环境变量里面的给删掉再设置
12go env -w GO111MODULE=ongo env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
2. go get使用
使用go module之后,go get 拉取依赖的方式就发生了变化
下载项目依赖
1go g...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/06/06/Golang-%E5%BC%80%E5%90%AFgo-mod/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
<article class="index-article">
<div class="index-article-header">
<v-row no-gutters>
<v-col cols="auto">
<div class="index-article-header-date font-weight-medium">
2020-05-29
</div>
</v-col>
<v-spacer></v-spacer>
<v-col cols="auto">
<v-card flat color="secondary" tile class="index-article-header-tag font-weight-medium">
<span class="index-article-header-tag-content">
<v-icon>fas fa-tag</v-icon>
<a rel="tag" href = /tags/debian/ >debian</a>
</span>
</v-card>
</v-col>
</v-row>
<span>
<a class="index-article-header-category font-weight-bold" href="/2020/05/29/Debian-%E5%85%B3%E9%97%AD%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2/">Uncategorized></a>
</span>
<a class="index-article-header-title font-weight-medium" href="/2020/05/29/Debian-%E5%85%B3%E9%97%AD%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2/">Debian 关闭图形界面</a>
</div>
<div class="index-article-content">
因为自己不喜欢用图形化页面,所以把debian的图形化关了。
配置如下
编辑grub配置文件123456789101112vi /etc/default/grub# If you change this file, run ‘update-grub’ afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n ‘Simple configuration’GRUB_DEFAULT=0 GRUB_TIMEOU...
</div>
<div class="index-article-readmore ">
<v-btn text href="/2020/05/29/Debian-%E5%85%B3%E9%97%AD%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2/">Read More</v-btn>
</div>
<v-divider></v-divider>
</article>
</v-card>
<div id="pagination" class="text-center">
<v-pagination
v-model="currentPage"
:length=9
@input="PageChange"
prev-icon="chevron_left"
next-icon="chevron_right"
color="secondary"
></v-pagination>
</div>
<div id="mobile-footer" class="d-block d-md-none">
<v-divider></v-divider>
<div id="mobile-footer-content">
<span>Theme: <a target="_blank" rel="noopener" href="https://github.com/kb1000fx/hexo-theme-insulin">Insulin</a> Powered by <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a></span><br>
<span> © 2015 - 2021 yhkl</span>
</div>
</div>
</v-col>
</v-row>
</v-container>
</v-content>
</v-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.2.30"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.5.2/base64.min.js"></script>
<script src="/js/main.js"></script>
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
</body>
</html>