摘要: 钩子到底是什么? 钩子 = 预埋的触发点,到固定时间自动跑一段你写的逻辑 类比生活最好懂: 手机关机前弹出提示 “是否保存文件”,这就是关机钩子 电脑开机自动启动微信,这就是开机钩子 K8s 容器有两个固定时间点,系统留了两个 “空位” 给你塞自定义命令,这两个空位就是钩子: 容器刚创建好、业务程序 阅读全文
posted @ 2026-06-30 17:03 名字长的像一只老山羊 阅读(13) 评论(0) 推荐(0)
摘要: !!!!!!!!!!!!!!!! image](uploading...) 阅读全文
posted @ 2026-06-09 14:11 名字长的像一只老山羊 阅读(4) 评论(0) 推荐(0)
摘要: ### 基本须知 #### jdk ``` 我们的java源码程序是只能放在src的蓝色文件夹中,放在别的文件不起作用 javac.exe 文件 javac是jdk中专门用来编译源码的文件 java.exe文件 启动jvm虚拟机 ``` ``` *.class 是编译后的字节码文件,一般放在idea 阅读全文
posted @ 2023-06-09 14:18 名字长的像一只老山羊 阅读(36) 评论(0) 推荐(0)
摘要: # 第18章 Linux操作系统优化 [TOC] ```bash [root@test ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROT 阅读全文
posted @ 2023-06-07 10:56 名字长的像一只老山羊 阅读(37) 评论(0) 推荐(0)
摘要: https://github.com/lavie/runlike/tree/cicd 非常好用 ``` yum -y install python3 python-pip pip3 install runlike #使用 runlike -p 容器Id ``` 阅读全文
posted @ 2023-06-01 17:41 名字长的像一只老山羊 阅读(73) 评论(0) 推荐(0)
摘要: http://www.codebaoku.com/git/git-index.html 阅读全文
posted @ 2023-05-31 16:28 名字长的像一只老山羊 阅读(29) 评论(0) 推荐(0)
摘要: ##定时任务 ``` crontab -l 0 3 * * * root /etc/init.d/clean-docker-log.sh 10 3 * * * root /etc/init.d/cleandocker.sh ``` -脚本 ``` [root@werun01-160 init.d]# 阅读全文
posted @ 2023-05-31 15:20 名字长的像一只老山羊 阅读(61) 评论(0) 推荐(0)
摘要: 我使用的是docker swarm -#报错 evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nodest_conn" error="open /proc/sys/net/ipv4/vs/expire_nod 阅读全文
posted @ 2023-05-31 10:15 名字长的像一只老山羊 阅读(611) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/qq_35458793/article/details/84874161 git stash (git 储藏)用于以下场景: 1.发现一个类是多余的,想删掉它担心之后会用到它,想保存但又不想增加一个脏的提交,这时候可以考虑使用git stash; 阅读全文
posted @ 2023-05-29 18:19 名字长的像一只老山羊 阅读(175) 评论(0) 推荐(0)
摘要: 转载 [git crlf和cr,lf问题](https://yebd1h.smartapps.cn/pages/blog/index?blogId=124864157&_swebfr=1&_swebFromHost=hwquickapp "git crlf和cr,lf问题") 一、不同系统的换行符 阅读全文
posted @ 2023-05-29 09:05 名字长的像一只老山羊 阅读(466) 评论(0) 推荐(0)