上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: CentOS 自建内网DNS 内网自建DNS服务,使用bind9。 准备和安装 安装 Bind9及工具yum install -y bind bind-utils net-tools 设置主机名hostnamectl set-hostname tty1-13.panda.com 配置 修改/etc/ 阅读全文
posted @ 2021-08-08 23:17 咕咚! 阅读(284) 评论(0) 推荐(0)
摘要: K8S 系统前期配置 要求: 2G内存 2核 关闭Swap 前期系统配置 关闭selinux sed -i 's/enforcing/disabled/' /etc/selinux/config 关闭防火墙 systemctl stop firewalld && systemctl disable 阅读全文
posted @ 2021-08-08 23:15 咕咚! 阅读(162) 评论(0) 推荐(0)
摘要: 官方下载地址:https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html 官网安装文档:https://docs.gitlab.com/runner/install/linux-manually.html sudo curl 阅读全文
posted @ 2021-07-20 01:07 咕咚! 阅读(244) 评论(0) 推荐(0)
摘要: GitLab CI/CD 新装gitlab玩ci/cd, 测试ci时报错如下: Running with gitlab-runner 14.0.1 (c1edb478) on raspberrypi UmXUDCNM Preparing the "shell" executor 00:00 Usin 阅读全文
posted @ 2021-07-20 01:02 咕咚! 阅读(885) 评论(0) 推荐(0)
摘要: raspberry pi install protobufs protobuf github仓库地址https://github.com/protocolbuffers/protobuf/releases。 没有提供armv7l 32位的版本,下载cpp的tar包,编译安装。 下载c++的tar包, 阅读全文
posted @ 2021-06-04 00:11 咕咚! 阅读(201) 评论(0) 推荐(0)
摘要: Go HTTP Client中的重定向和重定向Cookie的问题 最近在使用HTTP Client中的遇到的问题是在请求时,需要使用重定向中间的Cookie,但是默认自动重定向10次。 获取重定向中的Cookie,有如下两种方法: 禁止重定向,然后获取response的cookie 创建Cookie 阅读全文
posted @ 2021-03-15 11:45 咕咚! 阅读(1689) 评论(0) 推荐(0)
摘要: 参考链接: https://docs.mongodb.com/drivers/go/ https://www.mongodb.com/blog/search/golang%20quickstart 以下为部分代码: package main import ( "context" "fmt" "tim 阅读全文
posted @ 2021-02-25 00:41 咕咚! 阅读(328) 评论(0) 推荐(0)
摘要: pymongo插入多条数据是报错 使用pymongo是发现认证之后 插入数据单条数据是会报错:“认证失败”; 查出多条数据时,无法插入,生产的_id都是一样的,插入报错。 以上两条实在Windows下链接测试环境哭出现的问题。 以下为回家后,在Ubuntu下的测试代码,结果插入多条没有出现过上述情况 阅读全文
posted @ 2021-02-25 00:38 咕咚! 阅读(290) 评论(0) 推荐(0)
摘要: Go Slice踩坑 Go中的slice内部是实现的如下: type slice struct { array unsafe.Pointer // 底层数组指针 len int // 使用的长度 cap int // slice 容量 } 踩坑代码如下: 操作数据库代码: func (m *moni 阅读全文
posted @ 2021-01-20 17:50 咕咚! 阅读(98) 评论(0) 推荐(0)
摘要: 控制面板>>管理工具>>事件查看器>>选择安全性再点工具栏目中查看>>筛选>>事件ID填528进行过滤,时间你看是多久,双击查看之后就可以找到登录服务器的ip了。 阅读全文
posted @ 2021-01-14 10:26 咕咚! 阅读(690) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页