随机文章
IE下 域名过短 导致不存储cookie

IE下 域名过短 导致不存储cookie

在IE下,如果需要设置cookie,要注意一下cookie的domain属性,因为在下列情况下cookie会设置失效: domain中只有一个点,点左右两边的字符数都小于3个,形如: x.xx xx.xx x.x xx.x 这四种形式,IE都不能正确处理...
go http client Get请求方式代码

go http client Get请求方式代码

简单记录一下在Go语言中使用 http-Get 请求接口数据代码 //>> 创建http Get 请求 request, err := http.NewRequest("GET", "http://www.xxx.com/test.html", nil) //>> 判断是否...
Dockerfile 中修改阿里云debian9-12镜像源脚本

Dockerfile 中修改阿里云debian9-12镜像源脚本

下面几种方式都支持8.x到11.x和12.x最新版本,即写入镜像源时自动获取系统版本,是版本自适应写法。 阿里云Debian镜像源地址:https://developer.aliyun.com/mirror/debian Dockerfile 写法 RUN echo "deb h...
go 判断 map中键值是否存在

go 判断 map中键值是否存在

在go学习中没有像PHP中isset()那样直接判断键值是否存在 在go中判断键值使用下方写法 if _,ok:=mapVar[key];ok{ //>> 存在键值 }
运维大佬给我的 pptd 安装教程 保留一份

运维大佬给我的 pptd 安装教程 保留一份

1.pptpd服务端 #yum install pptpd #service firewalld stop #vi /etc/pptpd.conf localip 192.168.2.111 remoteip 192.168.2.112-253 #vi /etc/ppp/chap-secrets yilian pptpd 12345678 * #vi /etc/ppp/options....