2022年2月21日
摘要: 8、ansible的模块 1、ansible-hoc 临时命令 2、ansible-hoc 返回结果 绿色: 代表被管理端主机没有被修改 黄色: 代表被管理端主机发现变更 红色: 代表出现了故障,注意查看提示 8.1、command模块 command模块是ansible中默认模块。 参数: chd 阅读全文
posted @ 2022-02-21 23:02 狼行千里吃肉 阅读(192) 评论(0) 推荐(0)
摘要: 1、Linux运维发展史 早期,服务器比较少。 后来,随着网民的增加,服务器的数量节节攀升。 centos 6 centos 7 centos 8 ubuntu 12 ubuntu 14 ubuntu 16 使用Linux自动化运维工具,来完成一次执行多条命令,同时解决服务器版本不同。 Ansibl 阅读全文
posted @ 2022-02-21 22:44 狼行千里吃肉 阅读(88) 评论(0) 推荐(0)

import time with open('a.txt', 'rb') as f: f.seek(0, 2) while True: line = f.readline() if len(line) == 0: # 没有内容 time.sleep(0.5) else: print(line.decode('utf-8'), end='')