摘要: 本篇已经安装了单个etcd,然后进行扩容etcd节点至2个,安装单节点请参照:https://www.cnblogs.com/effortsing/p/10295261.html 实验架构 test1: 192.168.0.91 etcd test2: 192.168.0.92 etcd test3: 192.168.0.93 无 需求:test1节点已经安装了et... 阅读全文
posted @ 2019-01-20 22:18 effortsing 阅读(4151) 评论(0) 推荐(0) 编辑
摘要: 1、每分钟备份历史命令 制定计划任务:每分钟执行备份历史命令的脚本 注意:要用python写计划任务脚本,因为用shell脚本写的计划任务总是不执行 先写脚本: [root@master ~]# cat /backup/history.py #!/usr/bin/python # -*- coding:UTF-8 -*- ms=open("/root/.bash_history") ... 阅读全文
posted @ 2019-01-20 21:18 effortsing 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 本篇安装单个etcd,然后进行扩容etcd节点至2个,环境配置如果做了的话就跳过 实验架构 test1: 192.168.0.91 etcd test2: 192.168.0.92 无 test3: 192.168.0.93 无 1、环境配置 # 如下操作在所有节点操作 修改主机名 # 注意修改 各自节点对应的 主机名 sed -i '$a\hostname=... 阅读全文
posted @ 2019-01-20 16:18 effortsing 阅读(2629) 评论(0) 推荐(0) 编辑