* 如果是非Ubuntu系统,下面的apt-get命令要换成yum命令。apt-cache search all | grep -> yum list installed | grepapt-get purge -y -> yum remove -y其中的参数-y是过程中所有提示都自动选yes的作用 ...
分类:
其他好文 时间:
2021-01-07 12:30:42
阅读次数:
0
Linux 实用指令之查看端口开启情况 netstat -ntlp 查看端口使用情况! netstat -ntlp | grep 80 查看具体的端口是否使用! # netstat -ntlp Active Internet connections (only servers) Proto Recv ...
分类:
系统相关 时间:
2021-01-07 12:28:02
阅读次数:
0
sed命令 语法: sed [options] '{command}[flags]' [filename] {}是必须有,[]可选 options: -r 使用扩展的正则表达式 -n 只打印缓存中的内容,不打印文本内容 -e 执行多个命令 -f 执行文件中的命令 -i 修改原文件 -i.xxxx 修 ...
分类:
系统相关 时间:
2021-01-07 12:17:11
阅读次数:
0
1、首先安装一下ansible yum install ansible 2、修改一下ansible的参数以防ssh过去的时候需要首次判断yes 或者no sed -i 's/#host_key_checking = False/host_key_checking = False/g' /etc/an ...
分类:
其他好文 时间:
2021-01-07 12:10:47
阅读次数:
0
正则表达式是用于匹配字符串中字符组合的模式,在 JavaScript中,正则表达式也是对象。 正则表达式是在宿主环境下运行的,如js/php/node.js 等 本章讲解的知识在其他语言中知识也是可用的,会有些函数使用上的区别 #对比分析 与普通函数操作字符串来比较,正则表达式可以写出更简洁、功能强 ...
分类:
其他好文 时间:
2021-01-07 12:07:22
阅读次数:
0
安装部署主控节点服务 -- etcd 部署master节点服务 部署etcd集群 集群规划 HDss7-12.host.com ectc lead 192.168.154.12 HDss7-21.host.com ectc follow 192.168.154.21 HDss7-22.host.co ...
分类:
其他好文 时间:
2021-01-07 11:46:58
阅读次数:
0
- name: 以轮询的方式等待服务同步完成 shell: "systemctl status etcd.service|grep Active" register: etcd_status until: '"running" in etcd_status.stdout' retries: 8 de ...
分类:
其他好文 时间:
2021-01-07 11:40:27
阅读次数:
0
Python for Data Science - Data Visualization Three Different Data Visualization Types Data storytelling - for presentations to organizational decision ...
分类:
编程语言 时间:
2021-01-06 12:18:03
阅读次数:
0
查看默认启动项 grub2-editenv list 查看启动项列表 awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg 设置默认引导 grub2-set-default 'Windows 10' 设置默认启动项 grub2-set-defau ...
分类:
其他好文 时间:
2021-01-06 11:52:49
阅读次数:
0
1 $0 匹配到AA ,就是输出行匹配到AA 的行 2 3 4 5 awk -F ‘ ’ awk ‘ ’ 6 7 8, NR 与FNR的区别: 9 10 11 12 BEGIN和END 都是特殊的pattern 13 14 15 16 17 18 19 20 ...
分类:
系统相关 时间:
2021-01-05 11:32:23
阅读次数:
0