11 2022 档案

摘要:转自:https://juejin.cn/post/7037030068704051214,https://www.jianshu.com/p/94ee7e741d52 1.容器 容器是docker技术中的概念: docker包括三个概念:镜像(image),容器(container)、仓库(rep 阅读全文
posted @ 2022-11-20 15:21 lypbendlf 阅读(6231) 评论(0) 推荐(0)
摘要:转自:https://testerhome.com/topics/31561?order_by=like&,https://fafucoder.github.io/2020/11/05/kubernetes-qos/ https://github.com/bmwx4/k8s-in-practice/ 阅读全文
posted @ 2022-11-20 14:23 lypbendlf 阅读(5169) 评论(0) 推荐(2)
摘要:转自:https://www.kancloud.cn/thinkphp/mysql-design-optimalize/39325,https://learnku.com/articles/36479 1.数值类型 可以通过它来计算查询结果集所占大小,一行数据占的内存大小。 tinyint(M), 阅读全文
posted @ 2022-11-20 02:41 lypbendlf 阅读(116) 评论(0) 推荐(0)
摘要:转自:https://www.cnblogs.com/skillcoding/archive/2011/09/07/2169932.html 具体遇到时,再来单个确认。 阅读全文
posted @ 2022-11-20 02:35 lypbendlf 阅读(23) 评论(0) 推荐(0)
摘要:转自:https://www.runoob.com/linux/linux-comm-uniq.html 1.uniq Linux uniq 命令用于检查及删除文本文件中重复出现的行列,一般与 sort 命令结合使用。 uniq 可检查文本文件中重复出现的行列。 -c或--count 在每列前显示该 阅读全文
posted @ 2022-11-19 22:10 lypbendlf 阅读(50) 评论(0) 推荐(0)
摘要:转自:https://juejin.cn/post/7127287068434104356#heading-12 有空再总结,链接讲的很全面。 阅读全文
posted @ 2022-11-19 21:15 lypbendlf 阅读(27) 评论(0) 推荐(0)
摘要:转自:https://www.runoob.com/mysql/mysql-sql-injection.html 1.介绍 SQL注入,就是通过把SQL命令插入到Web表单递交或输入域名或页面请求的查询字符串,最终达到欺骗服务器执行恶意的SQL命令。 如果没有过滤特殊字符: // 设定$name 中 阅读全文
posted @ 2022-11-19 21:11 lypbendlf 阅读(61) 评论(0) 推荐(0)
摘要:转自:https://www.cnblogs.com/Sungeek/p/12200546.html,https://juejin.cn/post/7119878941589897247 1.连接方式 只考虑在Linux环境下,在不同主机之间是TCP/IP连接(不同主机间的网络通信),同一主机的客户 阅读全文
posted @ 2022-11-19 21:07 lypbendlf 阅读(210) 评论(0) 推荐(0)
摘要:转自:https://blog.shipengx.com/archives/4094be86.html,讲的非常全面 1.std::shared_ptr::get element_type* get() const noexcept; 获取指针,存储的指针指向 shared_ptr 对象解引用的对象 阅读全文
posted @ 2022-11-19 19:32 lypbendlf 阅读(9523) 评论(1) 推荐(0)
摘要:转自:https://blog.csdn.net/shift_wwx/article/details/78742459 1.命名空间 using namespace std;//最常见的用法 2.在子类中引入基类的成员 当private继承时,可以通过using 基类:变量/函数名,让子类访问。这种 阅读全文
posted @ 2022-11-19 19:11 lypbendlf 阅读(108) 评论(0) 推荐(0)
摘要:转自:https://juejin.cn/post/7043596855829069861 1.更新 对表做多行更新的时候通常会遇到以下两种情况: 单语句批量更新(update a=a+1 where pk > 500) 多语句批量更新(update a=1 where pk=1;update a= 阅读全文
posted @ 2022-11-19 01:12 lypbendlf 阅读(1006) 评论(0) 推荐(0)
摘要:转自:https://www.cnblogs.com/myseries/p/11191134.html 1.批量insert 1.1 一条sql 将单条insert改为批量insert,其实个人认为改为replace into更好,批量insert时,如果其中一条主键重复了,那么就会报错后面的ins 阅读全文
posted @ 2022-11-19 00:54 lypbendlf 阅读(968) 评论(0) 推荐(0)
摘要:转自:https://stackoverflow.com/questions/28595117/why-can-we-use-stdmove-on-a-const-object 1.右值 int a = 10; 左值是有固定的内存地址,&a即左值的地址,我们可以把&a保存起来,后续通过&a这个地址读 阅读全文
posted @ 2022-11-17 21:54 lypbendlf 阅读(133) 评论(0) 推荐(0)
摘要:转自:https://www.runoob.com/docker/docker-command-manual.html 1.创建一个新的容器 # 使用docker镜像nginx:latest以后台模式启动一个容器,并将容器命名为mynginx。 docker run --name mynginx - 阅读全文
posted @ 2022-11-17 21:28 lypbendlf 阅读(37) 评论(0) 推荐(0)
摘要:转自:https://www.runoob.com/design-pattern/proxy-pattern.html 1.例子 接口: 实体类: 代理类: 其数据成员包含了一个被代理的类对象。 通过代理类来实现对原类的访问,可以实现缓存。 2.作用 https://refactoringguru. 阅读全文
posted @ 2022-11-06 00:55 lypbendlf 阅读(34) 评论(0) 推荐(0)
摘要:转自:https://www.cnblogs.com/rainman/archive/2013/05/01/3053703.html 1.例子 按照group by后的字段分组,相同的为一组,一般是计算数量。 select 类别, sum(数量) as 数量之和 from A group by 类别 阅读全文
posted @ 2022-11-06 00:19 lypbendlf 阅读(30) 评论(0) 推荐(0)
摘要:转自:https://www.cnblogs.com/greatverve/archive/2012/09/12/const-iterator.html 1.介绍 如果传递过来一个const类型的容器,那么只能用const_iterator来遍历。 void Method(const vector< 阅读全文
posted @ 2022-11-05 21:53 lypbendlf 阅读(123) 评论(0) 推荐(0)
摘要:转自:https://www.zhihu.com/question/28557115,https://www.ruanyifeng.com/blog/2011/09/restful.html 1.总结 看Url就知道要什么 看http method就知道干什么(客户端通过四个HTTP动词,对服务器端 阅读全文
posted @ 2022-11-05 20:50 lypbendlf 阅读(38) 评论(0) 推荐(0)
摘要:转自:https://juejin.cn/post/6923062226941132814,https://www.cnblogs.com/111testing/p/6037579.html 1.介绍 Accept代表发送端(客户端)希望接受的数据类型。 比如:Accept:text/xml; 代表 阅读全文
posted @ 2022-11-05 20:41 lypbendlf 阅读(2726) 评论(0) 推荐(0)
摘要:转自:https://github.com/apache/incubator-brpc/blob/master/docs/cn/baidu_std.md 1.介绍 baidu_std是一种基于TCP协议的二进制RPC通信协议。它以Protobuf作为基本的数据交换格式,并基于Protobuf内置的R 阅读全文
posted @ 2022-11-05 20:32 lypbendlf 阅读(319) 评论(0) 推荐(0)
摘要:转自:https://zhuanlan.zhihu.com/p/49639722,https://www.zhihu.com/question/40527999 1.介绍 跨平台是指跨不同的操作系统(有不同的系统调用),有不同的cpu指令集。应用程序的执行本质是cpu指令的执行,而cpu指令分为特权 阅读全文
posted @ 2022-11-05 19:30 lypbendlf 阅读(304) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/ReticentHuxt/article/details/81781702,https://dubbo.apache.org/zh/docs/concepts/rpc-protocol/ 1.介绍 RPC(Remote Procedure Call, 阅读全文
posted @ 2022-11-05 19:15 lypbendlf 阅读(265) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/qq_35732963/article/details/76193003 1.介绍 逻辑备份和物理备份各有优劣,一般来说, 物理备份恢复速度比较快,占用空间比较大;物理备份就是备份数据文件了。 逻辑备份速度比较慢,占用空间比较小。逻辑备份的恢复成本高 阅读全文
posted @ 2022-11-05 18:33 lypbendlf 阅读(542) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/kingstar158/article/details/6859379 1.介绍 #include <fstream> ofstream //文件写操作 内存写入存储设备 ifstream //文件读操作,存储设备读区到内存中 fstream //读 阅读全文
posted @ 2022-11-04 19:43 lypbendlf 阅读(323) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/weixin_45697314/article/details/104554941,讲的很详细 1.框架 框架是针对开发人员的规范或软件产品,一般为开发更上层应用提供基础功能,可开发框架一般有适用的特定领域,比如作为网络程序开发基础中间件的ACE框架 阅读全文
posted @ 2022-11-04 00:31 lypbendlf 阅读(599) 评论(0) 推荐(0)
摘要:转自:https://blog.csdn.net/u010087712/article/details/50731222 1.localtime_r 用来获取系统时间,运行于linux平台下。 函数原型: struct tm *localtime_r(const time_t *timep, str 阅读全文
posted @ 2022-11-03 23:46 lypbendlf 阅读(932) 评论(0) 推荐(0)