摘要: 网络知识 1. 请详细介绍下TCP的三次握手机制,为什么要三次握手? 四次挥手, 为什么要四次挥手,挥手后为什么要保持2MSL? 1.1 为什么要有握手? 1.2 为什么是三次? 1.3 为什么要四次? 1.4 为什么包保持2MSL? 2. 简单介绍下HTTP协议中缓存的处理流程? 2.1 缓存的 阅读全文
posted @ 2021-06-29 17:22 TY520 阅读(24243) 评论(0) 推荐(0) 编辑
摘要: 记一次慢查询的SQL优化 测试表结构 MariaDB [shoppings]> desc login_userinfo; + + + + + + + | Field | Type | Null | Key | Default | Extra | + + + + + + + | num | int(1 阅读全文
posted @ 2021-06-12 14:22 TY520 阅读(24699) 评论(0) 推荐(0) 编辑
摘要: Kafka基础 Kafka集群的架构 ​ 1.broker ​ 2.topic ​ 3.partition:分区,把同一个topic分成不同的分区,提高负载 ​ 1.leader: 分区的主节点(老大) ​ 2.follower: 分区的从节点(小弟) ​ 4.Consumer Group 生产者往 阅读全文
posted @ 2021-05-22 17:00 TY520 阅读(24703) 评论(0) 推荐(0) 编辑
摘要: kafka 启动kafka 命令行分别启动zookeeper和kafka .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties .\bin\windows\kafka-server-start.bat .\con 阅读全文
posted @ 2021-05-22 16:57 TY520 阅读(23691) 评论(0) 推荐(0) 编辑
摘要: Docker基础命令 PS: 在以下命令中要注意下面5个名字代表的含义 1. imageId: 镜像ID 2. imageName: 镜像名字 3. containerId: 容器ID 4. containerName: 容器名字 5. fileName: 文件名 安装docker yum inst 阅读全文
posted @ 2021-03-07 21:06 TY520 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 概述 什么是ORM? ORM全称“Object Relational Mapping”,即对象-关系映射,就是把关系数据库的一行映射为一个对象,也就是一个类对应一个表,这样,写代码更简单,不用直接操作SQL语句。 现在我们就要实现简易版ORM。 效果 class Person(Model): """ 阅读全文
posted @ 2020-11-19 18:04 TY520 阅读(23713) 评论(0) 推荐(0) 编辑
摘要: 参考官网 https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ 一、安装 1、配置yum管理包 1)、在路径/etc/yum.repos.d/下创建文件mongodb-org-4.4.repo cd /etc/yum 阅读全文
posted @ 2020-08-21 14:41 TY520 阅读(25723) 评论(0) 推荐(0) 编辑
摘要: <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>A</title> <style> body { mar 阅读全文
posted @ 2020-06-19 19:23 TY520 阅读(24657) 评论(0) 推荐(0) 编辑
摘要: face_recognition 基于python+django+dlib实现的人脸打卡系统 开始之前 windows用户需要安装 VS2017 其他VS版本也行 linux用户需要安装c++编译器(网上很多方法自己搜) 起源 这个是我的毕业设计~~~ 安装 # code install git c 阅读全文
posted @ 2020-06-13 00:57 TY520 阅读(24837) 评论(2) 推荐(0) 编辑
摘要: formatNumber = n => { n = n.toString(); return n[1] ? n : '0' + n }; // 时间格式化 formatTime = date => { const year = date.getFullYear(); const month = da 阅读全文
posted @ 2020-06-08 10:14 TY520 阅读(29644) 评论(0) 推荐(0) 编辑