一份HAProxy配置文件 #全局配置 global #设置日志 log 127.0.0.1 local0 info #当前工作目录 chroot /usr/local/haproxy #用户与用户组 user haproxy group haproxy #运行进程ID uid 99 gid 99 ...
分类:
其他好文 时间:
2021-05-24 00:27:22
阅读次数:
0
一、算法分析 当时比赛做的时候有点急躁,就首先考虑了三种情况,分别是砝码总重恰好为x,大于x和小于x.显然只有总重恰好为x的时候才会必然爆炸,否则都可以通过一定的方式进行规避。然后考虑如何安排顺序进行规避,如果总重小于x则显然随便安排都不会炸。但是如果总重大于x则就要考虑怎么安排了,思路如下: 先排 ...
分类:
其他好文 时间:
2021-05-23 23:40:03
阅读次数:
0
解包: d = {"username":"admin","password":"123456"}print(d.items())# [('username', 'admin'), ('password', '123456')]for k,v in d.items(): print(k,v)递归 #函 ...
分类:
编程语言 时间:
2021-05-04 15:37:45
阅读次数:
0
5.6 B+树索引的使用 5.6.1 不同应用中B+树索引的使用 OLTP(on-line transaction processing)翻译为联机事务处理, OLAP(On-Line Analytical Processing)翻译为联机分析处理,从字面上来看OLTP是做事务处理,OLAP是做分析 ...
分类:
数据库 时间:
2021-05-04 15:27:37
阅读次数:
0
1.XMLDecoder 反序列化漏洞 cve-2017-10271/3506 影响版本10.3.6.0, 12.1.3.0, 12.2.1.0, 12.2.1.1 , 12.2.1.2 受影响url ,在这个配置里面: C:\Oracle\Middleware\user_projects\doma ...
分类:
Web程序 时间:
2021-05-03 12:59:59
阅读次数:
0
gitblit 非常简单易用的开源免费的git服务端,能满足一般的git server的要求,非常好。 安装非常简单:http://gitblit.github.io/gitblit/ 下载windows或linux版本,默认启动或简单改一下配置文件的端口就能用,不需要数据库。 记录一下遇到的小问题 ...
分类:
其他好文 时间:
2021-05-03 12:04:32
阅读次数:
0
序列化:把python中的对象转成json格式字符串 反序列化:把json格式字符串转成python中的对象 drf的序列化组件(序列化器):把对象转成字典。因为有字典,直接丢到Response中就可以了 序列化器的使用 1 写一个序列化的类,继承Serializer 2 在类中写要序列化的字段 f ...
分类:
其他好文 时间:
2021-04-30 12:36:16
阅读次数:
0
配置lvs-dr环境 master配置文件 global_defs { notification_email { root@localhost } notification_email_from keeplived@localhost smtp_server 127.0.0.1 smtp_conne ...
分类:
其他好文 时间:
2021-04-27 14:56:45
阅读次数:
0
Master配置 global_defs { notification_email { root@localhost } notification_email_from keeplived@localhost smtp_server 127.0.0.1 smtp_connect_timeout 30 ...
分类:
其他好文 时间:
2021-04-27 14:42:00
阅读次数:
0
学习无他法,唯有持之以恒 Git解决中文乱码问题git status 乱码解决方法:git config --global core.quotepath false?git commit 乱码解决方法:git config --global i18n.commitencoding utf-8?git ...
分类:
其他好文 时间:
2021-04-26 13:50:31
阅读次数:
0