摘要: 创建文件 ansible all -m file -a 'name=/opt/1.log state=touch' 删除文件 state= absent state = directory 创建文件夹 修改主机名 ansible 192.168.103.62 -m hostname -a 'name 阅读全文
posted @ 2021-05-24 15:46 lavida2000 阅读(38) 评论(0) 推荐(0)
摘要: command模块对 变量,管道等不支持 阅读全文
posted @ 2021-05-23 16:48 lavida2000 阅读(30) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/2281854/202105/2281854-20210523144904610-453357771.png)![](https://img2020.cnblogs.com/blog/2281854/202105/2281854-20210523150513475-1349549780.png)![](https://img... 阅读全文
posted @ 2021-05-23 15:41 lavida2000 阅读(38) 评论(0) 推荐(0)
摘要: Python内置的数据类型有: 数字 字符串 列表 元组 集合 字典 数字类型有 4 种: 整数类型, 浮点类型 , 复数类型, 布尔类型 0b 二进制 0o 八进制 0x 16进制 浮点类型在计算机中存储表示不一样 可以采用科学计数法表示,E 或 e , True False 注意短路情况 阅读全文
posted @ 2021-05-21 14:43 lavida2000 阅读(47) 评论(0) 推荐(0)
摘要: python导入模块有以下方法 import <模块名> from <模块名> import <代码元素> from <模块名> import <代码元素> as <代码元素别名> 阅读全文
posted @ 2021-05-21 14:25 lavida2000 阅读(23) 评论(0) 推荐(0)
摘要: ansible是无需客户端代理的(Agentless), 能控制被控制端 是基于SSH 不会因为文件已存在或已执行过而报错,而是不执行 ansible epel源 yum -y install epel-release 阅读全文
posted @ 2021-05-21 10:57 lavida2000 阅读(50) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/2281854/202105/2281854-20210520174020306-1196331141.png) 阅读全文
posted @ 2021-05-20 17:40 lavida2000 阅读(29) 评论(0) 推荐(0)
摘要: SpringCloud:是一个服务治理平台,提供了服务框架。包含: 服务注册与发现 , 配置中心, 消息中心,负载均衡,数据监控。 配置管理,服务治理,熔断机制,智能路由,微代理,控制总线,一次性token , 全局一致性锁,leader选举 ,分布式session ,集群状态管理 阅读全文
posted @ 2021-05-20 16:54 lavida2000 阅读(58) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/siyuanwai/archive/2021/04/13/14652810.html 阅读全文
posted @ 2021-05-20 16:49 lavida2000 阅读(28) 评论(0) 推荐(0)
摘要: source 配置文件 。配置文件 /etc/profile /etc/profile.d/*.sh /etc/bashrc 这三个文件是每个用户登录都会读取 这两个文件只对当前用户有效 ~/.bash_profile ~/.bashrc 阅读全文
posted @ 2021-05-19 16:09 lavida2000 阅读(73) 评论(0) 推荐(0)