-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
563 lines (352 loc) · 40.9 KB
/
atom.xml
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>遇见时光</title>
<subtitle>Keep Looking , Don't Settle <br> Stay Hungry , Stay Foolish</subtitle>
<link href="https://blog.zxkidea.top/atom.xml" rel="self"/>
<link href="https://blog.zxkidea.top/"/>
<updated>2023-04-16T05:45:40.000Z</updated>
<id>https://blog.zxkidea.top/</id>
<author>
<name>Rocky Zhou</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>GitHub Actions自动部署Hexo</title>
<link href="https://blog.zxkidea.top/posts/a65193c5.html"/>
<id>https://blog.zxkidea.top/posts/a65193c5.html</id>
<published>2023-04-16T05:45:40.000Z</published>
<updated>2023-04-16T05:45:40.000Z</updated>
<summary type="html"><h1 id="介绍"><a class="markdownIt-Anchor" href="#介绍"></a> 介绍</h1>
<p>我们可以使用Github Actions很方便的实现<code>CI/CD</code>工作流,我们可以实现一系列自动化的操作。在GitHub Actions中,当我们运行jobs时会触发workflow文件中定义的 action 。当一个workflow被触发后,GitHub Actions会创建一个新的虚拟环境来运行workflow文件中定义的Action。这个虚拟环境可以是预设的操作系统和软件环境,也可以是自定义的Docker镜像。</p>
<p>在执行Action的过程中,GitHub Actions会按照workflow文件中定义的步骤依次执行不同的操作,如下载代码仓库、安装依赖包、编译打包等。最终,Action的执行结果将被输出到日志中,用户可以通过查看日志来了解Action的详细执行情况。如果Action执行成功,workflow将继续执行下一步或结束;如果Action执行失败,workflow将停止执行并输出错误信息。</p>
<p>本文将介绍使用Github Actions实现自动部署hexo到Github Pages。接下来会简要说明一下原始的博客部署方案以及存在的问题,并且使用GitHub Actions是如何解决这些问题的。</p></summary>
<category term="CI/CD" scheme="https://blog.zxkidea.top/categories/CI-CD/"/>
<category term="Github Actions" scheme="https://blog.zxkidea.top/tags/Github-Actions/"/>
</entry>
<entry>
<title>J1900软路由方案全面指南</title>
<link href="https://blog.zxkidea.top/posts/6224fb7a.html"/>
<id>https://blog.zxkidea.top/posts/6224fb7a.html</id>
<published>2023-01-11T09:34:40.000Z</published>
<updated>2023-01-11T09:34:40.000Z</updated>
<summary type="html"><p>主要设备材料:J1900(双千兆网口,8G内存)、240G sata SSD(NAS)、128 msata SSD(PVE)、移动宽带。</p>
<br/>
<p>鉴于本方案过于庞杂,中间的过程会使用别人教程来缩减篇幅,可以自行学习验证,主要是提供软路由搭建和使用内网服务的整体思路,也是记录中间踩坑和搜索学习的整个过程。</p>
<hr />
<p>由于我们家是移动宽带,所以是大内网的环境,即所谓的访问<code>ip138.com</code>显示的IP地址与路由器的出口IP地址不一致,并且移动不提供公网IP,这就意味着我们不能使用DDNS的方式从外网访问家中内网的服务。如果是电信的宽带,可以问客服要一下公网IP,理由可以是装摄像头的需要,这样后面就可以使用DDNS了,而不需要使用内网穿透的方式。</p></summary>
<category term="软路由" scheme="https://blog.zxkidea.top/categories/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
<category term="软路由" scheme="https://blog.zxkidea.top/tags/%E8%BD%AF%E8%B7%AF%E7%94%B1/"/>
<category term="OpenWrt" scheme="https://blog.zxkidea.top/tags/OpenWrt/"/>
<category term="NAS" scheme="https://blog.zxkidea.top/tags/NAS/"/>
<category term="内网穿透" scheme="https://blog.zxkidea.top/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/"/>
</entry>
<entry>
<title>Win10微软拼音设置小鹤双拼</title>
<link href="https://blog.zxkidea.top/posts/ff0f4080.html"/>
<id>https://blog.zxkidea.top/posts/ff0f4080.html</id>
<published>2022-11-07T04:10:09.000Z</published>
<updated>2022-11-07T04:10:09.000Z</updated>
<summary type="html"><p>使用<code>Win+R</code>,输入<code>regedit.exe</code>打开注册表,找到这个路径:</p>
<p><code>计算机\HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS</code></p>
<p><img data-src="https://image.zxkidea.top/docsify/20221107/1ARea5SFuFWe.png?imageslim" alt="rocky" /></p></summary>
<category term="常用工具" scheme="https://blog.zxkidea.top/categories/%E5%B8%B8%E7%94%A8%E5%B7%A5%E5%85%B7/"/>
<category term="Win10" scheme="https://blog.zxkidea.top/tags/Win10/"/>
</entry>
<entry>
<title>部署NginxProxyManager实现反向代理管理</title>
<link href="https://blog.zxkidea.top/posts/6774414c.html"/>
<id>https://blog.zxkidea.top/posts/6774414c.html</id>
<published>2022-07-04T06:09:50.000Z</published>
<updated>2022-07-04T06:09:50.000Z</updated>
<summary type="html"><p><em>本部署教程是在腾讯云搭载2G,2核的Ubuntu 20.04轻量级服务器上进行实现的。</em></p>
<hr />
<h2 id="docker-部署nginxproxymanager"><a class="markdownIt-Anchor" href="#docker-部署nginxproxymanager"></a> Docker 部署NginxProxyManager</h2>
<p>首先在用户目录下创建<code>NginxProxyManager</code>文件夹及<code>docker-compose.yml</code>文件:</p>
<figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line"><span class="built_in">mkdir</span> NginxProxyManager</span><br><span class="line"><span class="built_in">cd</span> NginxProxyManager</span><br><span class="line"><span class="built_in">touch</span> docker-compose.yml</span><br><span class="line"><span class="built_in">mkdir</span> data</span><br><span class="line"><span class="built_in">mkdir</span> letsencrypt</span><br></pre></td></tr></table></figure>
<p>将一下内容复制到<code>docker-compose.yml</code>文件中:</p></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>Code-Server容器部署VScode Online并配置语言环境</title>
<link href="https://blog.zxkidea.top/posts/fbae2d13.html"/>
<id>https://blog.zxkidea.top/posts/fbae2d13.html</id>
<published>2022-07-04T06:03:05.000Z</published>
<updated>2022-07-04T06:03:05.000Z</updated>
<summary type="html"><p><em>本部署教程是在腾讯云搭载2G,2核的Ubuntu 20.04轻量级服务器上进行实现的。</em></p>
<hr />
<h2 id="docker-部署-code-server"><a class="markdownIt-Anchor" href="#docker-部署-code-server"></a> Docker 部署 Code-Server</h2>
<p>首先需要在你的用户下新建<code>~/.config</code>配置文件:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">mkdir</span> -p ~/.config</span><br></pre></td></tr></table></figure>
<p><code>Docker</code>部署<code>Code-Server</code>应用:</p>
<figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># This will start a code-server container and expose it at http://127.0.0.1:8888.</span></span><br><span class="line"><span class="comment"># It will also mount your current directory into the container as `/home/coder/project`</span></span><br><span class="line"><span class="comment"># and forward your UID/GID so that all file system operations occur as your user outside</span></span><br><span class="line"><span class="comment"># the container.</span></span><br><span class="line"><span class="comment">#</span></span><br><span class="line"><span class="comment"># Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can</span></span><br><span class="line"><span class="comment"># easily access/modify your code-server config in $HOME/.config/code-server/config.json</span></span><br><span class="line"><span class="comment"># outside the container.</span></span><br><span class="line"><span class="comment"># set the password with ********</span></span><br><span class="line">docker run -it --name code-server -p 127.0.0.1:8888:8080 \</span><br><span class="line"> -v <span class="string">&quot;<span class="variable">$HOME</span>/.config:/home/coder/.config&quot;</span> \</span><br><span class="line"> -v <span class="string">&quot;<span class="variable">$PWD</span>:/home/coder/project&quot;</span> \</span><br><span class="line"> -u <span class="string">&quot;<span class="subst">$(id -u)</span>:<span class="subst">$(id -g)</span>&quot;</span> \</span><br><span class="line"> -e <span class="string">&quot;DOCKER_USER=<span class="variable">$USER</span>&quot;</span> \</span><br><span class="line"> -e PASSWORD=******** \</span><br><span class="line"> codercom/code-server:latest</span><br></pre></td></tr></table></figure></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>Alist - 网盘列表部署</title>
<link href="https://blog.zxkidea.top/posts/65e45135.html"/>
<id>https://blog.zxkidea.top/posts/65e45135.html</id>
<published>2022-06-26T16:42:15.000Z</published>
<updated>2022-06-26T16:42:15.000Z</updated>
<summary type="html"><p><em>详细部署细节见官方文档<a href="https://alist-doc.nn.ci/docs/%EF%BC%9B">https://alist-doc.nn.ci/docs/;</a></em></p>
<p><em>本部署教程是在腾讯云搭载2G,2核的Ubuntu 20.04轻量级服务器上进行实现的</em></p>
<h2 id="使用docker部署"><a class="markdownIt-Anchor" href="#使用docker部署"></a> 使用Docker部署</h2>
<figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># docker部署Alist容器</span></span><br><span class="line">sudo docker run -d --restart=always -v /home/superman/alist:/opt/alist/data -p 5244:5244 --name=<span class="string">&quot;alist&quot;</span> xhofe/alist:latest</span><br><span class="line"></span><br><span class="line"><span class="comment"># 查看日志找到初始密码</span></span><br><span class="line">docker logs alist</span><br></pre></td></tr></table></figure>
<br /></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>解决Kindle电子书"暂无图片"问题及RSS订阅推送</title>
<link href="https://blog.zxkidea.top/posts/e1208bda.html"/>
<id>https://blog.zxkidea.top/posts/e1208bda.html</id>
<published>2022-06-13T03:17:11.000Z</published>
<updated>2022-06-13T03:17:11.000Z</updated>
<summary type="html"><p><img data-src="https://image.zxkidea.top/blog/20220613/qhzXBfoA2z7E.png?imageslim" alt="rocky" /></p>
<p>最近,亚马逊为 Kindle 添加了一个给大家添堵的功能,那就是,把通过 USB 拷贝到 Kindle 的电子书封面/缩略图显示成了带有“暂无图片”字样的图片占位符。</p>
<br />
<p>以往仅显示电子书标题的图片占位符,虽然没有真正的封面那样美观,但至少能让人分辨是哪一本书,而新图片占位符则是无法分辨到底想要看哪一本书,要找一本想看的书就像开盲盒一样。</p></summary>
<category term="Kindle" scheme="https://blog.zxkidea.top/categories/Kindle/"/>
<category term="Kindle" scheme="https://blog.zxkidea.top/tags/Kindle/"/>
<category term="RSS" scheme="https://blog.zxkidea.top/tags/RSS/"/>
</entry>
<entry>
<title>Kindle 退出中国后如何继续购买电子书及使用推送服务</title>
<link href="https://blog.zxkidea.top/posts/aa509077.html"/>
<id>https://blog.zxkidea.top/posts/aa509077.html</id>
<published>2022-06-13T03:10:41.000Z</published>
<updated>2022-06-13T03:10:41.000Z</updated>
<summary type="html"><p><em>亚马逊中国将在 2023 年 6 月 30 日之后停止运营 Kindle 电子书店,自此用户将无法再通过亚马逊中国账户继续购买电子书,一年后,即 2024 年 6 月 30 日之后,用户将无法使用“发送至 Kindle”功能,也就是无法再通过邮箱将电子书文件推送到 Kindle 个人文档服务。</em></p>
<hr />
<h2 id="切换其他区域的亚马逊账户"><a class="markdownIt-Anchor" href="#切换其他区域的亚马逊账户"></a> 切换其他区域的亚马逊账户</h2>
<p>如果你的 Kindle 设备想要在亚马逊的 Kindle 业务退出中国后继续购买电子书和个人文档服务,就需要换用其它区域的亚马逊账号,比如美国亚马逊、日本亚马逊、英国亚马逊等。</p>
<br/>
<p>因为Kindle 相关的内容服务只能设定到一个区域,你可以在“Manage Your Content and Devices”(管理你的内容和设备)的“Preferences”(偏好设置)中的“Country/Region Settings”(区域设置)进行更改。</p></summary>
<category term="Kindle" scheme="https://blog.zxkidea.top/categories/Kindle/"/>
<category term="Kindle" scheme="https://blog.zxkidea.top/tags/Kindle/"/>
<category term="RSS" scheme="https://blog.zxkidea.top/tags/RSS/"/>
</entry>
<entry>
<title>WSL + oh-my-zsh终端方案</title>
<link href="https://blog.zxkidea.top/posts/97d7db00.html"/>
<id>https://blog.zxkidea.top/posts/97d7db00.html</id>
<published>2022-06-11T07:22:46.000Z</published>
<updated>2022-06-11T07:22:46.000Z</updated>
<summary type="html"><p><em>本方案是在Win10 1903版本、WSL 1.13及Ubuntu 20.04上实现的</em></p>
<hr />
<h2 id="安装和配置wsl"><a class="markdownIt-Anchor" href="#安装和配置wsl"></a> 安装和配置WSL</h2>
<p>Windows本地需要先在微软应用商店安装WSL,然后可以看<a href="https://sspai.com/post/59380">此处的教程</a>进行配置</p>
<br />
<h2 id="安装和配置oh-my-zsh"><a class="markdownIt-Anchor" href="#安装和配置oh-my-zsh"></a> 安装和配置oh-my-zsh</h2>
<ol>
<li>
<p><strong>安装zsh</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-install zsh</span><br></pre></td></tr></table></figure></summary>
<category term="Linux运维" scheme="https://blog.zxkidea.top/categories/Linux%E8%BF%90%E7%BB%B4/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
</entry>
<entry>
<title>BiliHelper-personal脚本部署</title>
<link href="https://blog.zxkidea.top/posts/f6844a3f.html"/>
<id>https://blog.zxkidea.top/posts/f6844a3f.html</id>
<published>2022-06-03T14:30:46.000Z</published>
<updated>2022-06-03T14:30:46.000Z</updated>
<summary type="html"><p><em>本部署教程是在腾讯云搭载2G,2核的Ubuntu 20.04轻量级服务器上进行实现的。</em></p>
<hr />
<ol>
<li>
<p><strong>安装docker</strong></p>
<br/>
</li>
<li>
<p><strong>使用命令拉取镜像</strong></p>
</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo docker pull lkeme/bilihelper-personal</span><br></pre></td></tr></table></figure>
<br/>
<ol start="3">
<li><strong>通过配置文件传入参数</strong></li>
</ol>
<ul>
<li>下载<a href="https://file.zxkidea.top/index.php">配置文件1</a>和<a href="https://file.zxkidea.top/user.ini">配置文件2</a></li>
<li>修改</li>
<li>通过以下的命令进行挂载并运行</li>
</ul></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>docker设置二级域名转发nginx</title>
<link href="https://blog.zxkidea.top/posts/89d4b6e.html"/>
<id>https://blog.zxkidea.top/posts/89d4b6e.html</id>
<published>2022-06-03T14:20:33.000Z</published>
<updated>2022-06-03T14:20:33.000Z</updated>
<summary type="html"><ol>
<li><strong>首先随便启动一个nginx容器</strong></li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo docker run --name nginx -p 80:80 -d nginx</span><br></pre></td></tr></table></figure>
<br/>
<ol start="2">
<li><strong>进入目标文件夹创建代理服务器的文件夹</strong></li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">mkdir</span> html conf <span class="built_in">log</span></span><br></pre></td></tr></table></figure></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>青龙面板搭建实践——腾讯云+docker</title>
<link href="https://blog.zxkidea.top/posts/af163b37.html"/>
<id>https://blog.zxkidea.top/posts/af163b37.html</id>
<published>2022-06-03T12:44:08.000Z</published>
<updated>2022-06-03T12:44:08.000Z</updated>
<summary type="html"><p><em>本部署教程是在腾讯云搭载2G,2核的Ubuntu 20.04轻量级服务器上进行实现的。</em></p>
<hr />
<h2 id="安装青龙面板"><a class="markdownIt-Anchor" href="#安装青龙面板"></a> 安装青龙面板</h2>
<p>docker安装</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun</span><br></pre></td></tr></table></figure>
<br/>
<p>启动docker(第一行),并设置docker开机自启(第二行)</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl start docker</span><br><span class="line">sudo systemctl <span class="built_in">enable</span> docker</span><br></pre></td></tr></table></figure></summary>
<category term="容器部署" scheme="https://blog.zxkidea.top/categories/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="Docker" scheme="https://blog.zxkidea.top/tags/Docker/"/>
</entry>
<entry>
<title>Centos管理笔记</title>
<link href="https://blog.zxkidea.top/posts/6be227cb.html"/>
<id>https://blog.zxkidea.top/posts/6be227cb.html</id>
<published>2022-03-14T06:12:31.000Z</published>
<updated>2022-03-14T06:12:31.000Z</updated>
<summary type="html"><h1 id="创建用户"><a class="markdownIt-Anchor" href="#创建用户"></a> 创建用户</h1>
<h2 id="1-创建新用户"><a class="markdownIt-Anchor" href="#1-创建新用户"></a> 1. 创建新用户</h2>
<figure class="highlight bash"><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># 创建用户名为common_usr1的用户</span></span><br><span class="line">[root@localhost ~]<span class="comment"># adduser common_usr1</span></span><br><span class="line"><span class="comment"># 为新用户设置密码</span></span><br><span class="line">[root@localhost ~]<span class="comment"># passwd common_usr1</span></span><br><span class="line"><span class="comment"># 永久性删除用户账号</span></span><br><span class="line">[root@localhost ~]<span class="comment"># userdel peter</span></span><br><span class="line">[root@localhost ~]<span class="comment"># groupdel peter</span></span><br><span class="line"><span class="comment"># 强制删除该用户的主目录和主目录下的所有文件和子目录</span></span><br><span class="line">[root@localhost ~]<span class="comment"># userdel -rf username</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 查看系统中有哪些用户</span></span><br><span class="line">[root@localhost ~]<span class="comment"># cut -d : -f 1 /etc/passwd</span></span><br><span class="line"><span class="comment"># 查看可以登录系统的用户</span></span><br><span class="line">[root@localhost ~]<span class="comment"># cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1</span></span><br></pre></td></tr></table></figure></summary>
<category term="CentOS配置" scheme="https://blog.zxkidea.top/categories/CentOS%E9%85%8D%E7%BD%AE/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="资料整理" scheme="https://blog.zxkidea.top/tags/%E8%B5%84%E6%96%99%E6%95%B4%E7%90%86/"/>
</entry>
<entry>
<title>CentOS7安装使用VNC远程桌面</title>
<link href="https://blog.zxkidea.top/posts/64145778.html"/>
<id>https://blog.zxkidea.top/posts/64145778.html</id>
<published>2020-11-22T12:49:31.000Z</published>
<updated>2020-11-22T12:49:31.000Z</updated>
<summary type="html"><h2 id="1在linux服务器上安装配置vnc-server"><a class="markdownIt-Anchor" href="#1在linux服务器上安装配置vnc-server"></a> 1.在Linux服务器上安装配置VNC-server</h2>
<h3 id="11-配置vnc-server"><a class="markdownIt-Anchor" href="#11-配置vnc-server"></a> 1.1 配置vnc-server</h3>
<h4 id="111-安装vnc服务端并设置vnc连接密码"><a class="markdownIt-Anchor" href="#111-安装vnc服务端并设置vnc连接密码"></a> 1.1.1 安装VNC服务端并设置VNC连接密码</h4>
<p>首先安装vnc的server(若没有安装的话);需要root权限</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">su</span><br><span class="line">yum install tigervnc tigervnc-server</span><br></pre></td></tr></table></figure></summary>
<category term="CentOS配置" scheme="https://blog.zxkidea.top/categories/CentOS%E9%85%8D%E7%BD%AE/"/>
<category term="Linux" scheme="https://blog.zxkidea.top/tags/Linux/"/>
<category term="资料整理" scheme="https://blog.zxkidea.top/tags/%E8%B5%84%E6%96%99%E6%95%B4%E7%90%86/"/>
</entry>
<entry>
<title>MySQL语句技巧</title>
<link href="https://blog.zxkidea.top/posts/8343e966.html"/>
<id>https://blog.zxkidea.top/posts/8343e966.html</id>
<published>2020-03-11T03:26:23.000Z</published>
<updated>2020-03-11T03:26:23.000Z</updated>
<summary type="html"><h2 id="一-常用函数大全"><a class="markdownIt-Anchor" href="#一-常用函数大全"></a> 一、常用函数大全</h2>
<h3 id="1-数学函数"><a class="markdownIt-Anchor" href="#1-数学函数"></a> 1. 数学函数</h3>
<ul>
<li><code>ABS(x)</code> 返回x的绝对值</li>
<li><code>BIN(x)</code> 返回x的二进制(OCT返回八进制,HEX返回十六进制)</li>
<li><code>CEILING(x)</code> 返回大于x的最小整数值——<span style="background: linear-gradient(to right, #74ebd5, #acb6e5);">向上取整</span></li>
<li><code>EXP(x) </code> 返回值e(自然对数的底)的x次方</li>
</ul></summary>
<category term="数据库" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>DatabaseNotes-Ch10</title>
<link href="https://blog.zxkidea.top/posts/7755ff13.html"/>
<id>https://blog.zxkidea.top/posts/7755ff13.html</id>
<published>2020-03-09T01:35:13.000Z</published>
<updated>2020-03-09T01:35:13.000Z</updated>
<summary type="html"><h2 id="ch10-update-transaction"><a class="markdownIt-Anchor" href="#ch10-update-transaction"></a> Ch10. Update Transaction</h2>
<h3 id="1-事务及其特性"><a class="markdownIt-Anchor" href="#1-事务及其特性"></a> 1. 事务及其特性:</h3>
<p><font color = green size = 4>事务:</font>是访问和更新数据库的程序执行单元;事务中可能包含一个或多个SQL语句,这些语句要么都执行,要么都不执行。</p>
<br/>
<p><font color = green size = 4>事务的四大特性:ACID</font></p></summary>
<category term="数据库基础" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>DatabaseNotes-Ch7,8</title>
<link href="https://blog.zxkidea.top/posts/9c3362dd.html"/>
<id>https://blog.zxkidea.top/posts/9c3362dd.html</id>
<published>2020-03-08T03:27:21.000Z</published>
<updated>2020-03-08T03:27:21.000Z</updated>
<summary type="html"><h2 id="ch7-database-manage数据库管理"><a class="markdownIt-Anchor" href="#ch7-database-manage数据库管理"></a> Ch7. Database Manage(数据库管理)</h2>
<h3 id="1-integrity-constraints-完整性约束"><a class="markdownIt-Anchor" href="#1-integrity-constraints-完整性约束"></a> 1. Integrity Constraints (完整性约束)</h3>
<ul>
<li><font color = green size = 4>数据完整性:</font>存储在数据库中的所有数据值均正确的状态。它是应防止数据库中存在不符合语义规定的数据和防止因错误信息的输入输出造成无效操作或错误信息而提出的。</li>
</ul>
<br/>
<h4 id="1实体完整性"><a class="markdownIt-Anchor" href="#1实体完整性"></a> 1)实体完整性</h4></summary>
<category term="数据库基础" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>关系模式范式分解教程(3NF与BCNF口诀)</title>
<link href="https://blog.zxkidea.top/posts/6244050a.html"/>
<id>https://blog.zxkidea.top/posts/6244050a.html</id>
<published>2020-03-08T01:42:02.000Z</published>
<updated>2020-03-08T01:42:02.000Z</updated>
<summary type="html"><p>转载自:<a href="https://www.cnblogs.com/kungfupanda/p/12362163.html">https://www.cnblogs.com/kungfupanda/p/12362163.html</a></p>
<p>【通俗易懂】关系模式范式分解教程 3NF与BCNF口诀!小白也能看懂</p>
<hr />
<h2 id="1-在模式分解之前首先对于1nf2nf3nfbcnf做一个简明扼要的介绍"><a class="markdownIt-Anchor" href="#1-在模式分解之前首先对于1nf2nf3nfbcnf做一个简明扼要的介绍"></a> 1. 在模式分解之前,首先对于1NF,2NF,3NF,BCNF做一个简明扼要的介绍。</h2>
<p>1NF是指数据库表的每一列都是不可分割的基本数据项,即实体中的某个属性不能有多个值或者不能有重复的属性。</p>
<p>2NF要求属性完全依赖于主键,不能存在仅依赖主关键字一部分的属性。</p></summary>
<category term="数据库基础" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>DatabaseNotes-Ch5,6</title>
<link href="https://blog.zxkidea.top/posts/780f9bb4.html"/>
<id>https://blog.zxkidea.top/posts/780f9bb4.html</id>
<published>2020-03-05T15:30:17.000Z</published>
<updated>2020-03-05T15:30:17.000Z</updated>
<summary type="html"><h2 id="ch5-embedded-sql-嵌入式sql"><a class="markdownIt-Anchor" href="#ch5-embedded-sql-嵌入式sql"></a> Ch5. Embedded SQL (嵌入式SQL)</h2>
<h3 id="1-定义"><a class="markdownIt-Anchor" href="#1-定义"></a> 1. 定义</h3>
<p><font color = blue size = 4>嵌入式SQL是将SQL嵌入到某一种高级语言之中,如C/C++,Java等 这种高级语言被称为宿主语言</font></p>
<br/>
<h3 id="2-特性"><a class="markdownIt-Anchor" href="#2-特性"></a> 2. 特性</h3>
<p> <font color = blue size = 4>1)继承了高级语言的过程控制性</font></p></summary>
<category term="数据库基础" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
<entry>
<title>DatabaseNotes-Ch3,4</title>
<link href="https://blog.zxkidea.top/posts/928c862a.html"/>
<id>https://blog.zxkidea.top/posts/928c862a.html</id>
<published>2020-02-29T04:24:34.000Z</published>
<updated>2020-02-29T04:24:34.000Z</updated>
<summary type="html"><h2 id="ch3-basic-sql-query-language"><a class="markdownIt-Anchor" href="#ch3-basic-sql-query-language"></a> Ch3: Basic SQL Query Language</h2>
<h3 id="一-setting-up-the-database"><a class="markdownIt-Anchor" href="#一-setting-up-the-database"></a> 一. Setting up the Database</h3>
<h4 id="1-sql-datatype"><a class="markdownIt-Anchor" href="#1-sql-datatype"></a> 1. SQL Datatype</h4>
<p><font color = blue size = 4>CHARACTER(n), CHAR(n):</font> fixed-length character strings</p>
<p><font color = blue size = 4>CHARACTER VARYING(n), CHAR VARYING(n):</font>variable-length character strings</p>
<p><font color = blue size = 4>NUMERIC(p, s), DECIMAL(p, s), DEC(p, s):</font></p></summary>
<category term="数据库基础" scheme="https://blog.zxkidea.top/categories/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%9F%BA%E7%A1%80/"/>
<category term="数据库" scheme="https://blog.zxkidea.top/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/"/>
<category term="考研" scheme="https://blog.zxkidea.top/tags/%E8%80%83%E7%A0%94/"/>
<category term="笔记" scheme="https://blog.zxkidea.top/tags/%E7%AC%94%E8%AE%B0/"/>
</entry>
</feed>