上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 42 下一页
摘要: 1.什么是ad-hoc ad-hoc简而言之就是远程执行“临时命令”,执行完即结束,并不会保存 2.ad-hoc使用场景 比如在多台机器上查看某个进程是否启动,或拷贝指定文件到本地,等等 3.ad-hoc使用 [root@m01 ~]# ansible 'web01' -m shell -a 'fr 阅读全文
posted @ 2020-10-07 13:53 六月OvO 阅读(128) 评论(0) 推荐(0)
摘要: 1)方式一: #ip+端口+用户+密码 [root@m01 ~]# vim /etc/ansible/hosts [web01] 172.16.1.7 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='1' [web03] 172 阅读全文
posted @ 2020-10-07 13:48 六月OvO 阅读(520) 评论(0) 推荐(0)
摘要: 关于ARP信息介绍: ARP表是一个动态表,存储在计算机当中,目的是做一个ip地址与mac地址的对应。假设在同一子网段,计算机A与计算机B通信 计算机A的ip地址: 192.168.0.11 MAC地址AA-AA-AA-AA-AA-AA 计算机B的ip地址: 已知192.168.0.12 MAC地址 阅读全文
posted @ 2020-10-06 16:24 六月OvO 阅读(1181) 评论(0) 推荐(0)
摘要: 1.浏览器会先去查看响应头部的cache-control(缓存控制)2.如果没有到达过期时间,会直接返回缓存中的内容,不需要重新读取服务器3.如果cache-control设置为 no-cache,浏览器会去读取expires(缓存过期时间)4.如果没有到达expires过期时间,会直接返回缓存中的 阅读全文
posted @ 2020-09-16 18:02 六月OvO 阅读(838) 评论(0) 推荐(0)
摘要: [root@m01 ~]# cat /etc/ansible/ansible.cfg #inventory = /etc/ansible/hosts #主机列表配置文件 #library = /usr/share/my_modules/ #库文件存放目录 #remote_tmp = ~/.ansib 阅读全文
posted @ 2020-09-16 16:30 六月OvO 阅读(84) 评论(0) 推荐(0)
摘要: [root@m01 ~]# vim /etc/ansible/ansible.cfg # nearly all parameters can be overridden in ansible-playbook # or with command line flags. ansible will re 阅读全文
posted @ 2020-09-16 16:28 六月OvO 阅读(514) 评论(0) 推荐(0)
摘要: # ansible <host-pattern> [options] --version #ansible版本信息 -i #主机清单文件路径,默认是在/etc/ansible/hosts -m #使用的模块名称,默认使用command模块 -a #使用的模块参数,模块的具体动作 -k #提示输入ss 阅读全文
posted @ 2020-09-16 16:25 六月OvO 阅读(254) 评论(0) 推荐(0)
摘要: 1.什么是Ansible Ansible是一个自动化统一配置管理工具,自动化主要体现在Ansible集成了丰富模块以及功能组件,可以通过一个命令完成一系列的操作,进而能减少重复性的工作和维护成本,可以提高工作效率。 2.自动化工具 1.puppet 学习难,安装ruby环境难,没有远程执行功能2.a 阅读全文
posted @ 2020-09-16 16:19 六月OvO 阅读(221) 评论(0) 推荐(0)
摘要: 1.端口转发 [root@m01 ~]# iptables -t nat -A PREROUTING -d 10.0.0.61 -p tcp --dport 5555 -j DNAT --to-destination 172.16.1.7:22 [root@m01 ~]# iptables -t n 阅读全文
posted @ 2020-09-16 16:09 六月OvO 阅读(249) 评论(0) 推荐(0)
摘要: 1.禁止访问22端口 [root@m01 ~]# iptables -t filter -A INPUT -p tcp --dport 22 -j DROP iptables #防火墙命令 -t #指定表 filter #filter表 -A #追加规则到链 INPUT #指定链 -p #指定协议 阅读全文
posted @ 2020-09-16 16:02 六月OvO 阅读(142) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 42 下一页