摘要:
转载自:http://www.linuxe.cn/post-349.html 阅读全文
摘要:
转载自:http://www.linuxe.cn/post-349.html 阅读全文
摘要:
CentOS Docker 安装 使用 Docker 仓库进行安装 在新主机上首次安装 Docker Engine-Community 之前,需要设置 Docker 仓库。之后,您可以从仓库安装和更新 Docker。 设置仓库 安装所需的软件包。yum-utils 提供了 yum-config-ma 阅读全文
摘要:
下载grafana相关包 yumdownloader --resolve --destdir /grafana/ fontconfig freetype* urw-fonts 因国外源下载比较慢,可更换国内源: https://mirrors.tuna.tsinghua.edu.cn/grafana 阅读全文
摘要:
重启服务器: ansible testhosts -a “/sbin/reboot” 字符转替换命令:将ABC替换长abc ansible ansible-demo3 -m replace -a 'path=/testdir/test regexp="ABC" replace=abc' 阅读全文
摘要:
0x01: 把远程服务器的公钥来获取到本地 #ssh-keyscan ip1 ip2 ip3 ip4 >> /root/.ssh/known_hosts 完成后,/root/.ssh/known_hosts 多了许多内容 0x02: 添加服务IP到 ansible 的 hosts #cat >> / 阅读全文
摘要:
1、准备一台能连接互联网的相同OS服务器,使用yumdownloader工具下载ansible安装包以及所有依赖包。 以 root 身份安装Yumdownloader工具: yum install yum-utils 创建文件夹 mkdir /root/packages 默认源里没有ansible, 阅读全文
摘要:
(1) 检测语法 ansible-playbook --syntax-check /path/to/playbook.yaml (2) 测试运行 ansible-playbook -C /path/to/playbook.yaml (3)运行 ansible-playbook /path/to/pl 阅读全文
摘要:
转载:https://www.cnblogs.com/AutoSmart/p/10487012.html 环境 系统信息 发行版版本ip关系主机名 centos 7.5 192.168.181.135 服务端 server centos 7.5 192.168.181.136 客户端 client 阅读全文
摘要:
1 问题 删除有外键关联的数据或者表的时候,mysql出现报错: Cannot delete or update a parent row: a foreign key constraint fails 2 解决方法 先关闭外键约束,执行删除操作,然后再开启外键约束 阅读全文
摘要:
G0/0/4⬇️{HW_3F_L2_SW_01:net.if.in[ifHCInOctets.8].last(0)} G0/0/4是交换机接口,HW_3F_L2_SW_01(最好写成IP地址,有时候主机名不成功)是交换机名字 :net.if.in[ifHCInOctets.8]是交换机建值 .las 阅读全文
|