摘要: 道客的安装路径已经不能用了! 使用官方安装脚本自动安装 安装命令如下: curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 也可以使用国内 daocloud 一键安装命令: curl -sSL https://get. 阅读全文
posted @ 2024-03-19 15:39 Chuan_Chen 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Linux挂载新磁盘到根目录 添加磁盘到需要挂载的机器上 lsblk查看硬盘挂载情况,sdb,sdc为我新挂载的磁盘 fdisk -l查看挂载之前的分区情况, 为新硬盘创建分区 fdisk /dev/sdb, 终端会提示: Command (m for help):输入:n 依次输入p 和 1 接着 阅读全文
posted @ 2024-01-30 09:33 Chuan_Chen 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 其实在shell里,无法同时获取两个参数入参,需一点其他的 while read -r line do echo $line str1=`echo $line|awk '{print $1}'` echo $str1 str2=`echo $line|awk '{print $2}'` echo $ 阅读全文
posted @ 2023-11-15 16:37 Chuan_Chen 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 9月28日,Chromium提交了一个标题为Disable SHA1 in TLS server handshakes by default的部署,默认禁用了TLS握手时的SHA1加密方法,这本是一次正常且正确的发布,因为SHA1已经被公认为不安全的。但是却没想到有一些老旧的系统依然使用了较低版本的 阅读全文
posted @ 2023-11-07 16:59 Chuan_Chen 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 1、地址:http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 1分钟 2、地址:http://vjs.zencdn.net/v/oceans.mp4 3、地址:https://media.w3.org/2010/05/sintel/trailer.mp 阅读全文
posted @ 2023-10-09 11:48 Chuan_Chen 阅读(2229) 评论(0) 推荐(0) 编辑
摘要: yq 是一个轻量级和便携式的命令行 YAML、JSON 和 XML 处理器。yq 使用类似于 jq 的语法,但可以处理 yaml、json、xml、properties、csv 和 tsv 文件。它目前还不支持 jq 支持的所有功能,但它支持最常见的操作和函数,并且还在不断添加更多功能。以下将讲解如 阅读全文
posted @ 2023-10-08 16:44 Chuan_Chen 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 这几天有一台Ubuntu的服务器要部署软件,但是因为比较特殊,无法访问外网,使用了各种方法,记录下来,供大家参考。 1. 使用光盘镜像文件作为安装源 #mkdir /cdrom ## 创建文件夹准备加载目录 #mount -o loop /home/ubuntu-16.04.2-server-amd 阅读全文
posted @ 2023-09-28 09:19 Chuan_Chen 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 打开/etc/profile文件,在末尾加上这三行 export http_proxy=http://proxy_ip:port #代表http代理 export https_proxy=http://proxy_ip:port #代表https代理 export ftp_proxy=http:// 阅读全文
posted @ 2023-09-28 09:17 Chuan_Chen 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 这里的内网和外网并不必须是是我们通常说的公司内部网络和公网,只要是两块网卡都可以,不管是这两块网卡是公网、内网、甚至是k8s的虚拟网络两个网段的主要目的是实现分流,一个负责节点间通信,一个负责对外收发消息 总结一句话: listeners 指明 kafka 当前节点监听本机的哪个网卡 adverti 阅读全文
posted @ 2023-09-20 18:11 Chuan_Chen 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: 校验证书到期时间 `openssl x509 -enddate -noout -in +证书存放所在路径/users.pem` 比如校验G:\soft\OpenVPN\config\test\users.pem,返回的值则为到期时间 `openssl x509 -enddate -noout -in 阅读全文
posted @ 2023-08-03 10:17 Chuan_Chen 阅读(236) 评论(0) 推荐(0) 编辑
#waifu-toggle { background-color: #fa0; border-radius: 5px; bottom: 66px; color: #fff; cursor: pointer; font-size: 12px; right: 0; margin-right: -100px; padding: 5px 2px 5px 5px; position: fixed; transition: margin-right 1s; width: 60px; writing-mode: vertical-lr; } #waifu-toggle.waifu-toggle-active { margin-right: -40px; } #waifu-toggle.waifu-toggle-active:hover { margin-right: -30px; } #waifu { bottom: -1000px; right: 0; line-height: 0; margin-bottom: -10px; position: fixed; transform: translateY(3px); transition: transform .3s ease-in-out, bottom 3s ease-in-out; z-index: 1; } #waifu:hover { transform: translateY(0); } #waifu-tips { animation: shake 50s ease-in-out 5s infinite; background-color: rgba(236, 217, 188, .5); border: 1px solid rgba(224, 186, 140, .62); border-radius: 12px; box-shadow: 0 3px 15px 2px rgba(191, 158, 118, .2); font-size: 14px; line-height: 24px; margin: -30px 20px; min-height: 70px; opacity: 0; overflow: hidden; padding: 5px 10px; position: absolute; text-overflow: ellipsis; transition: opacity 1s; width: 250px; word-break: break-all; } #waifu-tips.waifu-tips-active { opacity: 1; transition: opacity .2s; } #waifu-tips span { color: #0099cc; } #waifu #live2d { cursor: grab; height: 300px; position: relative; width: 300px; } #waifu #live2d:active { cursor: grabbing; } #waifu-tool { color: #aaa; opacity: 0; position: absolute; left: -10px; top: 70px; transition: opacity 1s; } #waifu:hover #waifu-tool { opacity: 1; } #waifu-tool span { color: #7b8c9d; cursor: pointer; display: block; line-height: 30px; text-align: center; transition: color .3s; } #waifu-tool span:hover { color: #0684bd; /* #34495e */ } @keyframes shake { 2% { transform: translate(.5px, -1.5px) rotate(-.5deg); } 4% { transform: translate(.5px, 1.5px) rotate(1.5deg); } 6% { transform: translate(1.5px, 1.5px) rotate(1.5deg); } 8% { transform: translate(2.5px, 1.5px) rotate(.5deg); } 10% { transform: translate(.5px, 2.5px) rotate(.5deg); } 12% { transform: translate(1.5px, 1.5px) rotate(.5deg); } 14% { transform: translate(.5px, .5px) rotate(.5deg); } 16% { transform: translate(-1.5px, -.5px) rotate(1.5deg); } 18% { transform: translate(.5px, .5px) rotate(1.5deg); } 20% { transform: translate(2.5px, 2.5px) rotate(1.5deg); } 22% { transform: translate(.5px, -1.5px) rotate(1.5deg); } 24% { transform: translate(-1.5px, 1.5px) rotate(-.5deg); } 26% { transform: translate(1.5px, .5px) rotate(1.5deg); } 28% { transform: translate(-.5px, -.5px) rotate(-.5deg); } 30% { transform: translate(1.5px, -.5px) rotate(-.5deg); } 32% { transform: translate(2.5px, -1.5px) rotate(1.5deg); } 34% { transform: translate(2.5px, 2.5px) rotate(-.5deg); } 36% { transform: translate(.5px, -1.5px) rotate(.5deg); } 38% { transform: translate(2.5px, -.5px) rotate(-.5deg); } 40% { transform: translate(-.5px, 2.5px) rotate(.5deg); } 42% { transform: translate(-1.5px, 2.5px) rotate(.5deg); } 44% { transform: translate(-1.5px, 1.5px) rotate(.5deg); } 46% { transform: translate(1.5px, -.5px) rotate(-.5deg); } 48% { transform: translate(2.5px, -.5px) rotate(.5deg); } 50% { transform: translate(-1.5px, 1.5px) rotate(.5deg); } 52% { transform: translate(-.5px, 1.5px) rotate(.5deg); } 54% { transform: translate(-1.5px, 1.5px) rotate(.5deg); } 56% { transform: translate(.5px, 2.5px) rotate(1.5deg); } 58% { transform: translate(2.5px, 2.5px) rotate(.5deg); } 60% { transform: translate(2.5px, -1.5px) rotate(1.5deg); } 62% { transform: translate(-1.5px, .5px) rotate(1.5deg); } 64% { transform: translate(-1.5px, 1.5px) rotate(1.5deg); } 66% { transform: translate(.5px, 2.5px) rotate(1.5deg); } 68% { transform: translate(2.5px, -1.5px) rotate(1.5deg); } 70% { transform: translate(2.5px, 2.5px) rotate(.5deg); } 72% { transform: translate(-.5px, -1.5px) rotate(1.5deg); } 74% { transform: translate(-1.5px, 2.5px) rotate(1.5deg); } 76% { transform: translate(-1.5px, 2.5px) rotate(1.5deg); } 78% { transform: translate(-1.5px, 2.5px) rotate(.5deg); } 80% { transform: translate(-1.5px, .5px) rotate(-.5deg); } 82% { transform: translate(-1.5px, .5px) rotate(-.5deg); } 84% { transform: translate(-.5px, .5px) rotate(1.5deg); } 86% { transform: translate(2.5px, 1.5px) rotate(.5deg); } 88% { transform: translate(-1.5px, .5px) rotate(1.5deg); } 90% { transform: translate(-1.5px, -.5px) rotate(-.5deg); } 92% { transform: translate(-1.5px, -1.5px) rotate(1.5deg); } 94% { transform: translate(.5px, .5px) rotate(-.5deg); } 96% { transform: translate(2.5px, -.5px) rotate(-.5deg); } 98% { transform: translate(-1.5px, -1.5px) rotate(-.5deg); } 0%, 100% { transform: translate(0, 0) rotate(0); } } © 2022 GitHub, Inc. Terms Privacy Securi