上一页 1 2 3 4 5 6 7 ··· 16 下一页
摘要: refer to: http://www.ttlsa.com/ganglia/ganglia-monitor-system/ http://ganglia.info/?page_id=66 https://www.it610.com/article/1490296295242358784.htm 原 阅读全文
posted @ 2022-08-04 17:30 风风羊 阅读(47) 评论(0) 推荐(0) 编辑
摘要: docker cp 命令 本机的/web/teset_nginx/下有index.html文件 docker cp /web/test_nginx/ test_nginx:/web/ 将整个/web/test_nginx/复制到容器test_nginx下的/web里边 实际上也可以把主机文件直接传输 阅读全文
posted @ 2022-08-04 15:54 风风羊 阅读(535) 评论(0) 推荐(0) 编辑
摘要: refer to https://www.cnblogs.com/CloudMan6/p/6875834.html entrypoint 指令后面的启动脚本中也必须有一个持续运行的进程,否则 执行 docker run 的时候会自动退出。 entrypoint 和 cmd 区别 区别一: 使用 en 阅读全文
posted @ 2022-08-04 15:47 风风羊 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 使用 ubuntu 安装nginx 的时候,一般都要交互设置 时区和语言,如果在Dockerfile 中构建会导致构建失败 解决方案 就是 Dockerfile 中添加参数 FROM ubuntu:20.04 ARG DEBIAN_FRONTEND=noninteractive #设置非交互构建 R 阅读全文
posted @ 2022-08-04 14:44 风风羊 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 查找文件后执行操作 find ./ -maxdepth 1 -name "*.txt" -execdir cp -a {} iii/ \; find ./ -maxdepth 1 -name "*.txt" | xargs -i mv {} iii/ 阅读全文
posted @ 2022-08-04 09:11 风风羊 阅读(54) 评论(0) 推荐(0) 编辑
摘要: jq jq - Command-line JSON processor Example: $ echo '{"foo": 0}' | jq . { "foo": 0 } eg.json 示例 [ { "Id": "1ae91956f65b52a0f1cd075715b3faff96de1e851bb 阅读全文
posted @ 2022-08-02 19:16 风风羊 阅读(284) 评论(0) 推荐(0) 编辑
摘要: uniq 命令用来去重 -c 显示重复的次数 sort 命令用来排序 原理是向后比较相邻的元素的ascll码,然后升序输出 一般配合uniq 使用 ort分隔符是否生效 可以再使用 cut 分隔,打印不同的域查看是否和sort 相同 一般不生效的原因,就是分割符使用的输入法不同导致分隔符识别不同 s 阅读全文
posted @ 2022-08-02 17:18 风风羊 阅读(612) 评论(0) 推荐(0) 编辑
摘要: awk -v var1=$HOSTNAME https://blog.csdn.net/smile_pbb/article/details/112482009 阅读全文
posted @ 2022-08-02 14:17 风风羊 阅读(41) 评论(0) 推荐(0) 编辑
摘要: shell 脚本中使用seq 命令生成的序列 虽然可以循环输出,但是他还不是数组,需要再加一个括号才能变成数组 #tarr=($(seq -f "%02g" -s " " 0 24)) tarr=(`seq -f "%02g" -s " " 0 24`) # len=${#tarr[@]} 获取数组 阅读全文
posted @ 2022-08-02 14:07 风风羊 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1.一般按照行匹配 文本流的行内匹配,awk支持的包括: 通用的Linux正则匹配,文本匹配的格式是/pattern/,类似sed 的匹配方式 # awk -F : '/root/{print $0}' /etc/passwd root:x:0:0:root:/root:/bin/bash oper 阅读全文
posted @ 2022-08-02 09:37 风风羊 阅读(1472) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 16 下一页