上一页 1 2 3 4 5 6 7 ··· 32 下一页
摘要: 参考: https://man7.org/linux/man-pages/man7/dracut.cmdline.7.html 使用 rd.break={cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup} 阅读全文
posted @ 2024-09-25 12:06 武平宁 阅读(480) 评论(0) 推荐(0)
摘要: ssh -J ec2-user@jumper:port user@target -p 26222 -i <target.pem> 注意,需要配置与jumper机器的ssh免密。 阅读全文
posted @ 2024-09-24 16:50 武平宁 阅读(57) 评论(0) 推荐(0)
摘要: 以zsh为例: vi ~/.zshrc # 增加内容 source /tmp/my-ssh-agent.env if ! pgrep ssh-agent | grep -q $SSH_AGENT_PID ; then eval "$(ssh-agent -s)" > /dev/null ssh-ad 阅读全文
posted @ 2024-09-10 13:50 武平宁 阅读(71) 评论(0) 推荐(0)
摘要: kill父进程,让僵尸进程被1号进程接管,1号进程会自动清理僵尸进程。 阅读全文
posted @ 2024-08-29 14:07 武平宁 阅读(39) 评论(0) 推荐(0)
摘要: dewan ~/Downloads/b% cat 1 1 2 3 dewan ~/Downloads/b% cat 2 a b c dewan ~/Downloads/b% paste 1 2 1 a 2 b 3 c dewan ~/Downloads/b% paste -d , 1 2 1,a 2 阅读全文
posted @ 2024-08-27 16:42 武平宁 阅读(3) 评论(0) 推荐(0)
摘要: Linux中的复合命令(Compound Commands)是一种在shell(如bash)中允许将多个命令组合成一个逻辑单元进行执行的方式。这种方式允许你通过特定的语法结构,将多个命令组织起来,以实现更复杂的逻辑处理。复合命令可以帮助你减少脚本中的重复代码,提高脚本的可读性和可维护性。 Linux 阅读全文
posted @ 2024-08-27 09:59 武平宁 阅读(115) 评论(0) 推荐(0)
摘要: 关键日志如下: Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either n 阅读全文
posted @ 2024-08-26 17:38 武平宁 阅读(95) 评论(0) 推荐(0)
摘要: 使用dd命令 sudo dd if=AlmaLinux-9.4-x86_64-minimal.iso of=/dev/sdX bs=4M status=progress oflag=sync if参数指定输入文件(即ISO镜像文件)。 of参数指定输出文件(即U盘设备名)。 bs=4M设置块大小为4 阅读全文
posted @ 2024-08-08 09:45 武平宁 阅读(59) 评论(0) 推荐(0)
摘要: 创建过程为: kubelet 先创建pause容器生成network namespace 调用网络CNI driver CNI driver 根据配置调用具体的cni 插件 cni 插件给pause 容器配置网络 pod 中其他的容器都使用 pause 容器的网络 阅读全文
posted @ 2024-08-06 11:51 武平宁 阅读(12) 评论(0) 推荐(0)
摘要: 比如文件以'@'为分隔符 awk -F'@' ' { # 假设我们想要将左字段和右字段都设置为至少20个字符宽 # 使用printf的%-20s和%20s来左对齐和右对齐字段 # 注意:这里我们没有动态计算字段宽度,只是用了固定的20 printf "%-20s@%-20s\n", $1, $2 } 阅读全文
posted @ 2024-07-30 15:50 武平宁 阅读(13) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 32 下一页