diff --git "a/Day31-35/\347\216\251\350\275\254Linux\346\223\215\344\275\234\347\263\273\347\273\237.md" "b/Day31-35/\347\216\251\350\275\254Linux\346\223\215\344\275\234\347\263\273\347\273\237.md" index d9f8f54b36eab972f6a3eceb8b0de1778bfcbfad..bd0aeb0bc4bb4d13fde6f7f88b012b2439443b17 100644 --- "a/Day31-35/\347\216\251\350\275\254Linux\346\223\215\344\275\234\347\263\273\347\273\237.md" +++ "b/Day31-35/\347\216\251\350\275\254Linux\346\223\215\344\275\234\347\263\273\347\273\237.md" @@ -1232,29 +1232,29 @@ build environment: 6. **fg** - 将后台进程置于前台。 ```Shell - - [root@iZwz97tbgo9lkabnat2lo8Z ~]# fg %4 - redis-server - ^C5554:signal-handler (1530025281) Received SIGINT scheduling shutdown... - 5554:M 26 Jun 23:01:21.413 # User requested shutdown... - 5554:M 26 Jun 23:01:21.413 * Saving the final RDB snapshot before exiting. - 5554:M 26 Jun 23:01:21.415 * DB saved on disk - 5554:M 26 Jun 23:01:21.415 # Redis is now ready to exit, bye bye... + + [root@iZwz97tbgo9lkabnat2lo8Z ~]# fg %4 + redis-server + ^C5554:signal-handler (1530025281) Received SIGINT scheduling shutdown... + 5554:M 26 Jun 23:01:21.413 # User requested shutdown... + 5554:M 26 Jun 23:01:21.413 * Saving the final RDB snapshot before exiting. + 5554:M 26 Jun 23:01:21.415 * DB saved on disk + 5554:M 26 Jun 23:01:21.415 # Redis is now ready to exit, bye bye... ``` - > 说明:置于前台的进程可以使用`Ctrl+C`来终止它。 + > 说明:置于前台的进程可以使用`Ctrl+C`来终止它。 7. **top** - 进程监控。 ```Shell - - [root@iZwz97tbgo9lkabnat2lo8Z ~]# top - top - 23:04:23 up 3 days, 14:10, 1 user, load average: 0.00, 0.01, 0.05 - Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie - %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 - KiB Mem : 1016168 total, 191060 free, 324700 used, 500408 buff/cache - KiB Swap: 0 total, 0 free, 0 used. 530944 avail Mem - ... + + [root@iZwz97tbgo9lkabnat2lo8Z ~]# top + top - 23:04:23 up 3 days, 14:10, 1 user, load average: 0.00, 0.01, 0.05 + Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie + %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 + KiB Mem : 1016168 total, 191060 free, 324700 used, 500408 buff/cache + KiB Swap: 0 total, 0 free, 0 used. 530944 avail Mem + ... ``` ### 系统性能 diff --git "a/Day36-40/NoSQL\345\205\245\351\227\250.md" "b/Day36-40/NoSQL\345\205\245\351\227\250.md" index 221d00458c2f3fd7c87f142a804aab40696904a6..6fa0437d988eb314a9d9067f0bfc2b042446034a 100644 --- "a/Day36-40/NoSQL\345\205\245\351\227\250.md" +++ "b/Day36-40/NoSQL\345\205\245\351\227\250.md" @@ -15,10 +15,3 @@ ### MongoDB概述 - - - - - - - diff --git "a/Day36-40/\345\205\263\347\263\273\345\236\213\346\225\260\346\215\256\345\272\223MySQL.md" "b/Day36-40/\345\205\263\347\263\273\345\236\213\346\225\260\346\215\256\345\272\223MySQL.md" index f0081d35f84521e9839655c3d5d8c3f4b021178c..223213b53f23f74aa16ed929cc6514a47c003b7b 100644 --- "a/Day36-40/\345\205\263\347\263\273\345\236\213\346\225\260\346\215\256\345\272\223MySQL.md" +++ "b/Day36-40/\345\205\263\347\263\273\345\236\213\346\225\260\346\215\256\345\272\223MySQL.md" @@ -223,7 +223,7 @@ -- 查询名字中有“天”字的学生的姓名(模糊) select stuname from tb_student where stuname like '%天%'; - -- 查询学生的籍贯 + -- 查询学生的籍贯(去重) select distinct stuaddr from tb_student where stuaddr<>'' and stuaddr is not null; @@ -253,23 +253,19 @@ select sum(score) as 总成绩 from tb_score where sid=1001; -- 查询每个学生的学号和平均成绩(分组和聚合函数) - select sid as 学号, avg(score) as 平均分 - from tb_score + select sid as 学号, avg(score) as 平均分 from tb_score where score is not null group by sid order by 平均分 desc; -- 查询平均成绩大于等于80分的学生的学号和平均成绩(分组后的筛选) - select sid as 学号, avg(score) as 平均分 - from tb_score + select sid as 学号, avg(score) as 平均分 from tb_score group by sid having 平均分>=80 order by 平均分 desc; -- 查询年龄最大的学生的姓名(子查询) select stuname from tb_student where stubirth=(select min(stubirth) from tb_student); - select stuname from tb_student - where stubirth=(select max(stubirth) from tb_student); -- 查询选了三门及以上的课程的学生姓名(子查询/分组条件/集合运算) select stuname from tb_student where stuid in @@ -280,9 +276,8 @@ from tb_course, tb_teacher where tid=teacherid; - select cname, ccredit, tname, ttitle - from tb_course inner join tb_teacher - on tid=teacherid; + select cname, ccredit, tname, ttitle from tb_course + inner join tb_teacher on tid=teacherid; -- 查询学生姓名和所在学院名称 select stuname, collname @@ -293,16 +288,29 @@ inner join tb_college t2 on t1.collid=t2.collid; -- 查询学生姓名、课程名称以及考试成绩 + select stuname, cname, score + from tb_student, tb_course, tb_score + where stuid=sid and courseid=cid + and score is not null; + select stuname, cname, score from tb_student + inner join tb_score on stuid=sid + inner join tb_course on courseid=cid + where score is not null; -- 查询选课学生的姓名和平均成绩(子查询和连接查询) + select stuname, avgscore from tb_student, + (select sid, avg(score) as avgscore from tb_score + group by sid) temp where sid=stuid; - - -- 查询学生姓名、所选课程名称和成绩(连接查询) - + select stuname, avgscore from tb_student + inner join (select sid, avg(score) as avgscore + from tb_score group by sid) temp on sid=stuid; -- 查询每个学生的姓名和选课数量(左外连接和子查询) - + select stuname as 姓名, ifnull(total, 0) as 选课数量 + from tb_student left outer join (select sid, count(sid) as total + from tb_score group by sid) temp on stuid=sid; ``` 4. DCL diff --git "a/Day91-100/\345\233\242\351\230\237\351\241\271\347\233\256\345\274\200\345\217\221.md" "b/Day91-100/\345\233\242\351\230\237\351\241\271\347\233\256\345\274\200\345\217\221.md" index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..255624ba5332697ee8aa7e4a5aa7935af0161c8b 100644 --- "a/Day91-100/\345\233\242\351\230\237\351\241\271\347\233\256\345\274\200\345\217\221.md" +++ "b/Day91-100/\345\233\242\351\230\237\351\241\271\347\233\256\345\274\200\345\217\221.md" @@ -0,0 +1,68 @@ +## 团队项目开发 + +### Day01 + +1. 企业项目开发团队构成和角色:帮助学生了解项目中的角色及其关系,以小组为单位定义角色。 +2. 项目开发流程(软件过程模型)以及各个阶段涉及的相关文档。 +3. 团队开发相关工具介绍和环境搭建。 +4. 项目选题和理解业务。 + +### Day02 + +1. 业务讲解和需求评审。 +2. 数据库设计、接口设计、接口文档编撰。 +3. 模块划分、任务分配和项目进度安排。 + +### Day03~Day07 + +1. 日常开发,每日代码和进度审查。 +2. 集中解决项目开发中遇到的公共问题。 +3. 项目技术重点难点及其相关技术剖析。 +4. 之前未覆盖到的新技术讲解(例如:第三方授权登录、推送机制、消息队列的应用)。 + +### Day08 + +1. 单元测试。 +2. 集成测试。 +3. 接口测试。 +4. Selenium自动化测试。 +5. 性能测试(压力测试)及其相关工具。 + - Apache Benchmark + - SQLSlap + - WebBench + +### Day09 + +1. MySQL性能优化相关。 + - SQL优化(执行计划、慢查询分析) + - 读写分离 + - 集群配置 + - 架构优化 +2. 基于Redis的缓存、主从复制、哨兵和集群配置、切片。 +3. 日志分析和漏洞分析。 + +### Day10 + +1. 项目部署环境搭建。 +2. Nginx反向代理配置。 +3. Nginx+KeepAlived集群环境配置。 +4. HTTPS配置(密钥、证书、配置)。 +5. 项目运维相关。 + +### Day11 + +1. 虚拟化技术和虚拟化容器。 +2. Docker的安装和使用。 +3. Docker镜像和虚拟化部署。 + +### Day12 + +1. ShowCase +2. 项目评审和总结 + +### Day13~Day15 + +1. 模拟面试。 +2. 简历指导。 + +