Skip to content

Commit 147bd29

Browse files
committed
修改了部分文档
1 parent eade73f commit 147bd29

File tree

4 files changed

+107
-38
lines changed

4 files changed

+107
-38
lines changed

Day31-35/玩转Linux操作系统.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1232,29 +1232,29 @@ build environment:
12321232
6. **fg** - 将后台进程置于前台。
12331233

12341234
```Shell
1235-
1236-
[root@iZwz97tbgo9lkabnat2lo8Z ~]# fg %4
1237-
redis-server
1238-
^C5554:signal-handler (1530025281) Received SIGINT scheduling shutdown...
1239-
5554:M 26 Jun 23:01:21.413 # User requested shutdown...
1240-
5554:M 26 Jun 23:01:21.413 * Saving the final RDB snapshot before exiting.
1241-
5554:M 26 Jun 23:01:21.415 * DB saved on disk
1242-
5554:M 26 Jun 23:01:21.415 # Redis is now ready to exit, bye bye...
1235+
1236+
[root@iZwz97tbgo9lkabnat2lo8Z ~]# fg %4
1237+
redis-server
1238+
^C5554:signal-handler (1530025281) Received SIGINT scheduling shutdown...
1239+
5554:M 26 Jun 23:01:21.413 # User requested shutdown...
1240+
5554:M 26 Jun 23:01:21.413 * Saving the final RDB snapshot before exiting.
1241+
5554:M 26 Jun 23:01:21.415 * DB saved on disk
1242+
5554:M 26 Jun 23:01:21.415 # Redis is now ready to exit, bye bye...
12431243
```
12441244

1245-
> 说明:置于前台的进程可以使用`Ctrl+C`来终止它。
1245+
> 说明:置于前台的进程可以使用`Ctrl+C`来终止它。
12461246

12471247
7. **top** - 进程监控。
12481248

12491249
```Shell
1250-
1251-
[root@iZwz97tbgo9lkabnat2lo8Z ~]# top
1252-
top - 23:04:23 up 3 days, 14:10, 1 user, load average: 0.00, 0.01, 0.05
1253-
Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie
1254-
%Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
1255-
KiB Mem : 1016168 total, 191060 free, 324700 used, 500408 buff/cache
1256-
KiB Swap: 0 total, 0 free, 0 used. 530944 avail Mem
1257-
...
1250+
1251+
[root@iZwz97tbgo9lkabnat2lo8Z ~]# top
1252+
top - 23:04:23 up 3 days, 14:10, 1 user, load average: 0.00, 0.01, 0.05
1253+
Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie
1254+
%Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
1255+
KiB Mem : 1016168 total, 191060 free, 324700 used, 500408 buff/cache
1256+
KiB Swap: 0 total, 0 free, 0 used. 530944 avail Mem
1257+
...
12581258
```
12591259

12601260
### 系统性能

Day36-40/NoSQL入门.md

-7
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,3 @@
1515
### MongoDB概述
1616

1717

18-
19-
20-
21-
22-
23-
24-

Day36-40/关系型数据库MySQL.md

+22-14
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
-- 查询名字中有“天”字的学生的姓名(模糊)
224224
select stuname from tb_student where stuname like '%天%';
225225

226-
-- 查询学生的籍贯
226+
-- 查询学生的籍贯(去重)
227227
select distinct stuaddr from tb_student
228228
where stuaddr<>'' and stuaddr is not null;
229229

@@ -253,23 +253,19 @@
253253
select sum(score) as 总成绩 from tb_score where sid=1001;
254254

255255
-- 查询每个学生的学号和平均成绩(分组和聚合函数)
256-
select sid as 学号, avg(score) as 平均分
257-
from tb_score
256+
select sid as 学号, avg(score) as 平均分 from tb_score
258257
where score is not null
259258
group by sid
260259
order by 平均分 desc;
261260

262261
-- 查询平均成绩大于等于80分的学生的学号和平均成绩(分组后的筛选)
263-
select sid as 学号, avg(score) as 平均分
264-
from tb_score
262+
select sid as 学号, avg(score) as 平均分 from tb_score
265263
group by sid having 平均分>=80
266264
order by 平均分 desc;
267265

268266
-- 查询年龄最大的学生的姓名(子查询)
269267
select stuname from tb_student
270268
where stubirth=(select min(stubirth) from tb_student);
271-
select stuname from tb_student
272-
where stubirth=(select max(stubirth) from tb_student);
273269

274270
-- 查询选了三门及以上的课程的学生姓名(子查询/分组条件/集合运算)
275271
select stuname from tb_student where stuid in
@@ -280,9 +276,8 @@
280276
from tb_course, tb_teacher
281277
where tid=teacherid;
282278

283-
select cname, ccredit, tname, ttitle
284-
from tb_course inner join tb_teacher
285-
on tid=teacherid;
279+
select cname, ccredit, tname, ttitle from tb_course
280+
inner join tb_teacher on tid=teacherid;
286281

287282
-- 查询学生姓名和所在学院名称
288283
select stuname, collname
@@ -293,16 +288,29 @@
293288
inner join tb_college t2 on t1.collid=t2.collid;
294289

295290
-- 查询学生姓名、课程名称以及考试成绩
291+
select stuname, cname, score
292+
from tb_student, tb_course, tb_score
293+
where stuid=sid and courseid=cid
294+
and score is not null;
296295

296+
select stuname, cname, score from tb_student
297+
inner join tb_score on stuid=sid
298+
inner join tb_course on courseid=cid
299+
where score is not null;
297300

298301
-- 查询选课学生的姓名和平均成绩(子查询和连接查询)
302+
select stuname, avgscore from tb_student,
303+
(select sid, avg(score) as avgscore from tb_score
304+
group by sid) temp where sid=stuid;
299305

300-
301-
-- 查询学生姓名、所选课程名称和成绩(连接查询)
302-
306+
select stuname, avgscore from tb_student
307+
inner join (select sid, avg(score) as avgscore
308+
from tb_score group by sid) temp on sid=stuid;
303309

304310
-- 查询每个学生的姓名和选课数量(左外连接和子查询)
305-
311+
select stuname as 姓名, ifnull(total, 0) as 选课数量
312+
from tb_student left outer join (select sid, count(sid) as total
313+
from tb_score group by sid) temp on stuid=sid;
306314
```
307315

308316
4. DCL

Day91-100/团队项目开发.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
## 团队项目开发
2+
3+
### Day01
4+
5+
1. 企业项目开发团队构成和角色:帮助学生了解项目中的角色及其关系,以小组为单位定义角色。
6+
2. 项目开发流程(软件过程模型)以及各个阶段涉及的相关文档。
7+
3. 团队开发相关工具介绍和环境搭建。
8+
4. 项目选题和理解业务。
9+
10+
### Day02
11+
12+
1. 业务讲解和需求评审。
13+
2. 数据库设计、接口设计、接口文档编撰。
14+
3. 模块划分、任务分配和项目进度安排。
15+
16+
### Day03~Day07
17+
18+
1. 日常开发,每日代码和进度审查。
19+
2. 集中解决项目开发中遇到的公共问题。
20+
3. 项目技术重点难点及其相关技术剖析。
21+
4. 之前未覆盖到的新技术讲解(例如:第三方授权登录、推送机制、消息队列的应用)。
22+
23+
### Day08
24+
25+
1. 单元测试。
26+
2. 集成测试。
27+
3. 接口测试。
28+
4. Selenium自动化测试。
29+
5. 性能测试(压力测试)及其相关工具。
30+
- Apache Benchmark
31+
- SQLSlap
32+
- WebBench
33+
34+
### Day09
35+
36+
1. MySQL性能优化相关。
37+
- SQL优化(执行计划、慢查询分析)
38+
- 读写分离
39+
- 集群配置
40+
- 架构优化
41+
2. 基于Redis的缓存、主从复制、哨兵和集群配置、切片。
42+
3. 日志分析和漏洞分析。
43+
44+
### Day10
45+
46+
1. 项目部署环境搭建。
47+
2. Nginx反向代理配置。
48+
3. Nginx+KeepAlived集群环境配置。
49+
4. HTTPS配置(密钥、证书、配置)。
50+
5. 项目运维相关。
51+
52+
### Day11
53+
54+
1. 虚拟化技术和虚拟化容器。
55+
2. Docker的安装和使用。
56+
3. Docker镜像和虚拟化部署。
57+
58+
### Day12
59+
60+
1. ShowCase
61+
2. 项目评审和总结
62+
63+
### Day13~Day15
64+
65+
1. 模拟面试。
66+
2. 简历指导。
67+
68+

0 commit comments

Comments
 (0)