avatar
文章
179
标签
47
分类
46

首页
文章
  • 归档
  • 标签
  • 分类
  • ToDo
  • 友情链接
留言板
关于
Echin の 博客
搜索
首页
文章
  • 归档
  • 标签
  • 分类
  • ToDo
  • 友情链接
留言板
关于

Echin の 博客

pprof
发表于2024-08-07|更新于2024-08-07|Go|Go
https://cloud.tencent.com/developer/article/2311402 pprof#12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667package ginPprofimport ( "encoding/base64" "errors" "github.com/gin-gonic/gin" "grpc-template-service/core/kernel" "net/http" "net/http/pprof")// this module is used to add pprof to gin// pprof is a tool for golang to profile the performance of the program/ ...
docker学习
发表于2024-08-02|更新于2024-08-02|docker|docker
引言#Docker is an open platform for developing, shipping, and running applications. Docker allows you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. Docker 架构# Docker Client Docker Daemon Docker Server Engine Docker Registry Docker 安装#123456789sudo apt updatesudo apt install -y apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL h ...
子网掩码
发表于2024-08-02|更新于2024-08-02|计算机网络|计算机网络
https://blog.csdn.net/pagnzong/article/details/112127329 https://blog.csdn.net/pagnzong/article/details/112737814?spm=1001.2014.3001.5502 案例: IP地址 172.18.248.200/20 表示一个网络地址,其中 172.18.248.200 是网络中一个特定的IP地址,而 /20 是子网掩码的CIDR(无类别域间路由)表示法。CIDR表示法用于指定IP地址中用于网络地址的位数。 IP地址:172.18.248.200 是这个网络中的一个IP地址。 子网掩码:/20 表示前20位是网络部分,剩余的位数(32-20=12位)是主机部分。换算成点分十进制的子网掩码是 255.255.240.0。 网络地址:在这个例子中,网络地址是 172.18.240.0。这是通过将IP地址的主机部分置为0得到的。 广播地址:对于这个网络,广播地址是 172.18.255.255。这是通过将IP地址的主机部分置为1得到的。 可用的IP地址范围:在这个网络中 ...
git-rebase
发表于2024-07-20|更新于2024-07-22|git|git
推荐的理论视频:我觉得讲的特别好,基本上讲懂了 git merge 和 git rebase 的区别 [推荐的实践视频](【git常用操作–git rebase和git merge】https://www.bilibili.com/video/BV1Ur4y1q7xB?vd_source=14bd7726c6d4866de1b04d07b8d59f38):如果看了理论视频有点抽象,那就实践一下就可以了 相关博客 git merge#特点: 永远向前 这东西很简单,也很暴力 就是将一个分支合并到另一个分支时,然后直接处理,形成新一个 commit ,然后推送 git rebase#特点: 版本倒退 这东西有点复杂: 比如现在有一个 main分支 和 ecn分支(ecn分支是从main抽出来的) 共同的起点 ecn 什么时候 从 main分支中抽离出来,这个起点就是这个 因此如果 ecn 想要修改信息就只能修改这一段信息 对 commit 的处理 在commit中有几个东西 commit 的推送信息 commit 的数量 commit 每一个的内容 应该还有其他的,想不出来… ...
持久化存储
发表于2024-07-15|更新于2024-07-15|k8s|k8s
持久化存储#这个 感觉 很重要 Volumes# HostPath 将节点上的文件或目录挂载到 Pod 上,该目录会变成持久化存储目录,即使 Pod 删除后重启,也可以重新加载到该目录,目录下的文件不会丢失 首先创建配置 12345678910111213141516apiVersion: v1kind: Podmetadata: name: test-volume-pdspec: volumes: # 卷定义在spec级别 - name: test-volume hostPath: # 与主机共享目录 path: /usr/share/xx # 主机上的路径 type: DirectoryOrCreate # 目录的类型 containers: - image: nginx name: nginx-volume volumeMounts: # 挂载卷的配置在容器级别 - mountPath: /test-pd name: test-volume 可以在主机上找到配置目录 12345678hhhyc@hhhyc ...
关于花两天来连接数据库这件事
发表于2024-07-12|更新于2024-07-13|随笔|随笔
重申标题: 我真的差不多花了两天在连接数据库 第一天#当我连接了 Lens 和 Termius 后,就需要跑通项目来: 所以我需要连接 Oracle ,但是一开始其实是要 Oracle 的 客户端 所以我花了一下午的时间来下载创建 Oracle instant client 和 PL/sql 其实个人感觉配这些数据还是挺好配的,但是这些数据库其实是在内网的,因此我在本地连不上这些数据库,好吧我也不知地为什么连不上数据库,个人感觉这个东西就是不知道怎么找原因,反正连不上都是一个报错 后来问了一下老板–> DataGrip 直接启动,对当时为什么没想到,可能是觉得oracle太高级了 不应该使用DataGrip来连接,事实上说明,JB家的产品同样牛逼 但是我还是连不上数据库,因为数据库是在内网中的 第二天#yzy 突然跟我说可以用 Termius 的 port fowarding 来远程连接服务器。 因为我连接了 hduhelp 的服务器,而这个服务器和那些数据库的域名在同一个内网中 因此我就可以通过 port fowarding 来连接这些数据库,准确的来说是把这些数据库的端口 ...
namespace
发表于2024-07-10|更新于2024-07-10
Secret
发表于2024-07-10|更新于2024-07-10|k8s|k8s
创建 Secret# sudo kubectl create secret -h Create a secret with specified type. A docker-registry type secret is for accessing a container registry. – docker 仓库加密(常用) A generic type secret indicate an Opaque secret type. – 普通文本加密 A tls type secret holds TLS certificate and its associated key. Available Commands: docker-registry Create a secret for use with a Docker registry generic Create a secret from a local file, directory, or literalvalue tls Create a TLS secret Usa ...
configMap
发表于2024-07-10|更新于2024-07-15|k8s|k8s
直接看帮助 创建 configMap#1kubectl create cm -h # configMap = cm 12345678910111213141516171819Examples: # Create a new config map named my-config based on folder bar kubectl create configmap my-config --from-file=path/to/bar # Create a new config map named my-config with specified keys instead of filebasenames on disk kubectl create configmap my-config --from-file=key1=/path/to/bar/file1.txt--from-file=key2=/path/to/bar/file2.txt # Create a new config map named my-config with key1=config1 and ...
Ingress
发表于2024-07-10|更新于2024-07-10|k8s|k8s
k3s 自动安装了Ingress 配置 123456789101112131415apiVersion: networking.k8s.io/v1 # 版本kind: Ingress # 类型metedata: # 元数据 name: ingress-nginx-example annotations: kubernetes.io/ingresss.class: "nginx"spec: rules: - host: k8s.service.cn # 这里监听的是service监听的地址 http: path: # 这里是 nginx 本地的一个配置,由于我没有用过nginx,所以跳过 - backend: serviceName: nginx-svc # 代理到哪个service上去 servicPort: 80 # service 的端口 path: /so # 等价于nginx 中的 location的路径前缀匹配 个人认为,这个就是nginx就是监听 ...
1…345…18
avatar
Echin-h
keep learning
文章
179
标签
47
分类
46
Follow Me
公告
love is accumulated, not love, too.
最新文章
北京租房2025-07-21
Linux命令补充2025-02-27
非唯一索引加锁规则实操2025-02-19
sls日志接入2025-01-18
操作系统概论2024-12-08
分类
  • CD/CI1
  • CI/CD1
  • Gin10
  • Go26
  • Gorm9
  • JAVA2
  • Linux4
  • MQ1
标签
flamgo CI/CD 简历 代码随想录 ngrok casbin 分布式锁 配置文件 Go 八股文 CD/CI JAVA语法 oauth Gin git vim rpc none NX青训营 flamego 设计模式 Linux docker JWT pinnacle 我爱记单词 sls 计算机网络 博客 Mysql MQ 前端 北京北京 随笔 Gorm 设计原则 k8s 算法 Session 图解HTTP
归档
  • 七月 20251
  • 二月 20252
  • 一月 20251
  • 十二月 20243
  • 十一月 20243
  • 十月 20248
  • 九月 20249
  • 八月 20246
网站资讯
文章数目 :
179
已运行时间 :
本站访客数 :
本站总访问量 :
最后更新时间 :
©2023 - 2025 By Echin-h
框架 Hexo|主题 Butterfly
today is a beautiful day
搜索