会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
winterforever
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
下一页
2018年9月17日
初始docker
摘要: docker现在是比较火的一门技术,作为一名运维从业者对docker的学习是自身知识的储备,也是自我能力的一种提升。 现在就来认识一下docker吧。 系统版本 [root@CFCA ~]# cat /etc/redhat-release Red Hat Enterprise Linux Serve
阅读全文
posted @ 2018-09-17 14:14 winterforever
阅读(153)
评论(0)
推荐(0)
2018年9月4日
ansible主机互信
摘要: 前文讲了ansible,但是ansible是基于ssh来做的,首先的和管理主机之间做主机互信,简单来说主机互信就是把主机上产生的公钥传到互信主机上就可以了。 在主机上产生公钥文件。使用命令:ssh-keygen 然后把产生的公钥传到需要做互信的主机上。 公钥的位置: 使用命令ssh-copy-id进
阅读全文
posted @ 2018-09-04 11:16 winterforever
阅读(491)
评论(0)
推荐(0)
2018年8月24日
自动化运维之saltstack
摘要: 1、环境: 2、saltstack三大功能: 远程执行 配置管理 云管理 3、saltstack安装基础环境准备 [root@tiandong ~]# cat /etc/redhat-release CentOS release 6.5 (Final) [root@tiandong ~]# unam
阅读全文
posted @ 2018-08-24 10:39 winterforever
阅读(159)
评论(0)
推荐(0)
2018年7月23日
Ansible常用模块之系统类模块
摘要: cron模块 管理远程主机上的计划任务 [root@tiandong ansible]# ansible all -m cron -a "name='cron test' minute=5 hour=1 job='echo test'" 每天1点5分执行 [root@tiandong ansible
阅读全文
posted @ 2018-07-23 09:39 winterforever
阅读(172)
评论(0)
推荐(0)
2018年7月20日
Ansible常用模块之命令类模块
摘要: Command模块 在远程节点上执行命令 [root@tiandong ~]# ansible all -m command -a "ls" 在远程主机上执行ls命令。 [root@tiandong ~]# ansible all -m command -a "chdir=/tmp ls" 进入到/
阅读全文
posted @ 2018-07-20 13:45 winterforever
阅读(323)
评论(0)
推荐(0)
2018年7月19日
ansible变量
摘要: ansible中定义变量可以使用vars关键字,变量由字母、数字、下划线组成,开头必须是字母。 先看一个简单的事例 [root@tiandong tiandong]# vim var.yml hosts: all vars: testvar1: testfile remote_user: root
阅读全文
posted @ 2018-07-19 22:02 winterforever
阅读(183)
评论(0)
推荐(0)
2018年7月18日
ansible模块文件操作
摘要: Ansible常用模块文件操作 [root@tiandong etc]# ansible-doc -l 列出ansible所支持的模块 [root@tiandong ~]# ansible-doc -s ping(模块名) 可以查看模块的详细信息 Ping模块 [root@tiandong ~]#
阅读全文
posted @ 2018-07-18 16:39 winterforever
阅读(6112)
评论(0)
推荐(0)
2018年7月3日
遍历字典
摘要: Python支持对字典的遍历,有多种遍历字典的方式:所有的键值对,键或者值。 遍历所有的键值对: shellpythonC
阅读全文
posted @ 2018-07-03 16:18 winterforever
阅读(1168)
评论(0)
推荐(0)
2018年4月19日
puppet自动化部署
摘要: puppet自动化部署 puppet 实现运维自动化管理的软件。 官方网站: http://puppetlabs.com/ pupptet下载链接:http://downloads.puppetlabs.com/puppet/ 环境:192.168.16.63 服务器端 系统:centos6.5 1
阅读全文
posted @ 2018-04-19 22:34 winterforever
阅读(329)
评论(0)
推荐(0)
2018年3月18日
FTP服务
摘要: ftp服务的搭建: [root@tiandong63 ~]# yum install vsftpd -y 安装 [root@tiandong63 ~]# chkconfig vsftpd on 开机自启动 [root@tiandong63 ~]# /etc/init.d/vsftpd start 启
阅读全文
posted @ 2018-03-18 16:09 winterforever
阅读(304)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告