禁用tcp6 跑docker的时候发现映射端口之后的端口竟然是tcp6,这是因为ipv6没有关闭而docker默认使用tcp6的原因,所以我要把tcp6关闭,关闭方法如下: 方法 1 编辑文件/etc/sysctl.conf, net.ipv6.conf.all.disable_ipv6 =1 ne ...
分类:
其他好文 时间:
2020-04-13 12:05:22
阅读次数:
156
ylbtech-Code-Validator:验证IPv6地址 1.返回顶部 1、 using System; using System.Text.RegularExpressions; namespace Sp.Common { public class ValidatorHelper { /// ...
分类:
其他好文 时间:
2020-04-12 16:55:21
阅读次数:
69
ylbtech-Code-Validator:验证网址(可以匹配IPv4地址但没对IPv4地址进行格式验证;IPv6暂时没做匹配) 1.返回顶部 1、 using System; using System.Text.RegularExpressions; namespace Sp.Common { ...
分类:
其他好文 时间:
2020-04-12 16:34:17
阅读次数:
55
IPV6出现之后,在windows平台,最好是用随IPV6而出的新函数实现IP地址的字符串形式与整数互换。这些新函数是InetPton和InetNtop。 1 InetPton() 作用:该函数实现字符串到整数的转换。 原型:INT InetPton(INT Family, PCWST pszAdd ...
分类:
其他好文 时间:
2020-04-12 12:34:09
阅读次数:
71
socket 创建套接字文件: domain值: |domain|描述| | | | |AF_INET|IPv4 Internet protocols| |AF_INET6|IPv6 Internet protocols| type值: |type|描述| | | | |SOCK_STREAM|Pr ...
分类:
其他好文 时间:
2020-04-12 07:53:59
阅读次数:
61
1、 IPv6地址表示 IPv4地址被分割成4个8位段,每个8位段之间用 隔开,每个8位段的范围是0~255.4部分点分十进制组成 IPv6地址被分割成8个16位段,每个16位段之间用 隔开,每个16位段的范围是0x0000~0xFFFF之间。 首选格式:将IPv6中的128位,也就是共32个字符完 ...
分类:
其他好文 时间:
2020-04-07 15:39:37
阅读次数:
75
【四种情况】:HttpRequest、HttpResponse、HttpServletRequest、HttpServletResponse【什么是HTTP?】超文本传输协议(HyperTextTransferProtocol--HTTP)是一个设计来使客户端和服务器顺利进行通讯的协议。HTTP在客户端和服务器之间以request-responseprotocol(请求-回复协议)工作。【Http
分类:
Web程序 时间:
2020-04-07 00:25:52
阅读次数:
95
1. ipaddress Internet地址 ipaddress模块提供了处理IPv4和IPv6网络地址的类。这些类支持验证,查找网络上的地址和主机,以及其他常见操作。 1.1 地址 最基本的对象表示网络地址本身。可以向ip_address()传入一个字符串、整数或字节序列来构造一个地址。返回值是 ...
分类:
编程语言 时间:
2020-04-06 10:04:08
阅读次数:
76
Mac, List of the Port occupation Usage of command, for the port management | | 10 Command Examples in Linux: lsof meaning ‘LiSt Open Files’ is used to ...
分类:
系统相关 时间:
2020-04-04 22:54:18
阅读次数:
104