通过使用Python struct库来解析IGMPv3报文 struct模块中的函数 函数 return explain pack(fmt,v1,v2…) string 按照给定的格式(fmt),把数据转换成字符串(字节流),并将该字符串返回. pack_into(fmt,buffer,offset ...
分类:
其他好文 时间:
2020-10-06 21:03:42
阅读次数:
59
1 创建user/serializers.py 写序列化器 from rest_framework import serializers from user.model import User def address_validate(data): #独立校验器 #raise serializers ...
分类:
其他好文 时间:
2020-10-06 20:51:55
阅读次数:
29
Problem: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors ...
分类:
编程语言 时间:
2020-10-05 22:34:28
阅读次数:
52
双主+keepalived+haproxy配置(负载均衡) 实验系统:CentOS 6.5_x86_64实验前提:防火墙和selinux都关闭实验软件:keepalived-1.2.13 haproxy-1.8.13 mysql—5.7.21主1 ip:192.168.226.134主2 ip:19 ...
分类:
数据库 时间:
2020-09-24 22:10:47
阅读次数:
75
WEB服务器和DB服务器重启后,突然出现WEB页面打开延迟卡顿问题。 静态页面速度很快,php等页面很慢 排查发现DB的mysql.log提示reslove 失败 2020-09-24T07:35:17.212363Z 13607 [Warning] IP address 'X.X.X.X' cou ...
分类:
数据库 时间:
2020-09-24 22:10:13
阅读次数:
78
1、让属于语言内部的方法,写在Relect,整理。 2、让命令形式改为方法的形式,如dele obj.name(Reflect.deleteProperty(obj,name))、name in obj(Relect.has(obj,name))。 3、让返回合理些Object.defineProp ...
分类:
其他好文 时间:
2020-09-23 23:32:40
阅读次数:
42
这是容器云平台第四篇,接上一篇继续,首先kubernetes服务暴露有如下几种方式:NodePortLoadbalanceClusterIPIngress本文紧贴第一篇架构图,只介绍Ingress,其余的后续再详细说。。Ingress是什么?Ingress是对集群中服务的外部访问进行管理的API对象,典型的访问方式是HTTP,当然TCP也是可以管理滴。Ingress可以提供负载均衡、SSL终结和基
分类:
Web程序 时间:
2020-09-23 23:29:12
阅读次数:
55
mysql创建function,存储过程报错,This function has none of DETERMINISTIC, NO SQL解决办法 ...
分类:
数据库 时间:
2020-09-18 03:02:42
阅读次数:
43
1、线程状态 Thread.State public enum State { /** * Thread state for a thread which has not yet started. */ NEW,(新建) /** * Thread state for a runnable threa ...
分类:
编程语言 时间:
2020-09-18 00:09:42
阅读次数:
28
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I ...
分类:
其他好文 时间:
2020-09-18 00:08:22
阅读次数:
27