fanlong0212

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年1月30日

摘要: 转载自:http://www.linuxe.cn/post-349.html 阅读全文
posted @ 2020-01-30 23:02 fanlong0212 阅读(243) 评论(0) 推荐(0) 编辑

2020年1月29日

摘要: CentOS Docker 安装 使用 Docker 仓库进行安装 在新主机上首次安装 Docker Engine-Community 之前,需要设置 Docker 仓库。之后,您可以从仓库安装和更新 Docker。 设置仓库 安装所需的软件包。yum-utils 提供了 yum-config-ma 阅读全文
posted @ 2020-01-29 14:52 fanlong0212 阅读(107) 评论(0) 推荐(0) 编辑

2020年1月18日

摘要: 下载grafana相关包 yumdownloader --resolve --destdir /grafana/ fontconfig freetype* urw-fonts 因国外源下载比较慢,可更换国内源: https://mirrors.tuna.tsinghua.edu.cn/grafana 阅读全文
posted @ 2020-01-18 15:12 fanlong0212 阅读(2354) 评论(0) 推荐(0) 编辑

2020年1月13日

摘要: 重启服务器: ansible testhosts -a “/sbin/reboot” 字符转替换命令:将ABC替换长abc ansible ansible-demo3 -m replace -a 'path=/testdir/test regexp="ABC" replace=abc' 阅读全文
posted @ 2020-01-13 20:04 fanlong0212 阅读(94) 评论(0) 推荐(0) 编辑

2020年1月12日

摘要: 0x01: 把远程服务器的公钥来获取到本地 #ssh-keyscan ip1 ip2 ip3 ip4 >> /root/.ssh/known_hosts 完成后,/root/.ssh/known_hosts 多了许多内容 0x02: 添加服务IP到 ansible 的 hosts #cat >> / 阅读全文
posted @ 2020-01-12 23:54 fanlong0212 阅读(420) 评论(0) 推荐(0) 编辑

摘要: 1、准备一台能连接互联网的相同OS服务器,使用yumdownloader工具下载ansible安装包以及所有依赖包。 以 root 身份安装Yumdownloader工具: yum install yum-utils 创建文件夹 mkdir /root/packages 默认源里没有ansible, 阅读全文
posted @ 2020-01-12 23:32 fanlong0212 阅读(979) 评论(0) 推荐(0) 编辑

2020年1月11日

摘要: (1) 检测语法 ansible-playbook --syntax-check /path/to/playbook.yaml (2) 测试运行 ansible-playbook -C /path/to/playbook.yaml (3)运行 ansible-playbook /path/to/pl 阅读全文
posted @ 2020-01-11 19:54 fanlong0212 阅读(2982) 评论(0) 推荐(0) 编辑

2019年6月12日

摘要: 转载: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 阅读全文
posted @ 2019-06-12 10:04 fanlong0212 阅读(258) 评论(0) 推荐(0) 编辑

2019年6月5日

摘要: 1 问题 删除有外键关联的数据或者表的时候,mysql出现报错: Cannot delete or update a parent row: a foreign key constraint fails 2 解决方法 先关闭外键约束,执行删除操作,然后再开启外键约束 阅读全文
posted @ 2019-06-05 16:37 fanlong0212 阅读(4922) 评论(1) 推荐(1) 编辑

2019年5月30日

摘要: 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 阅读全文
posted @ 2019-05-30 11:38 fanlong0212 阅读(2842) 评论(0) 推荐(0) 编辑