上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 前几篇文章已经完成了saltstack的安装、认证,从这篇文章开始学习使用saltstack的远程执行。 1.salt远程执行命令详解Usage: salt [options] '<target>' <function> [arguments] [options] :此选项指定以何种方式匹配targ 阅读全文
posted @ 2016-05-11 16:50 xkops 阅读(629) 评论(0) 推荐(0) 编辑
摘要: salt-master和salt-minion之间需要进行认证,认证之后salt-master才能管理salt-minion。 1.在node1:[root@node1 ~]# egrep -v '^#|^$' /etc/salt/minionmaster: 192.168.3.1id: 192.1 阅读全文
posted @ 2016-05-11 16:32 xkops 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 由于salt组件的安装依赖较多,最好使用yum源安装(不建议使用源码安装)。由于试验环境限制,不能使用网络,故增加了实验的难度。下面分可以访问internet和不可以访问internet两方面介绍salt的rpm包安装。 方法一: 前提条件:可以访问internet 1.安装epel-release 阅读全文
posted @ 2016-05-11 16:19 xkops 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: 1.服务器环境node1:192.168.3.1node2:192.168.3.2 2.主机名和hosts文件node1: node1.xkops.com --主机名[root@node1 ~]# tail -n 2 /etc/hosts192.168.3.1 node1 node1.xkops.c 阅读全文
posted @ 2016-05-11 16:07 xkops 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 文章出处:http://www.restran.net/2015/04/09/gilab-centos-installation-note/ 在 CentOS 6.5 Minimal 系统环境下,用源代码的方式安装 Gitlab 7.5 的过程中,遇到了不少问题,现把笔记整理出来。 Distribu 阅读全文
posted @ 2016-05-04 12:00 xkops 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 前提条件: 主:10.11.100.205从:10.11.100.50源目录:http://10.11.100.205/svn/rep-ops目标目录:http://10.11.100.50/svn/rep-ops1.在从机建立空目录mkdir -pv /yc/svn/rep-opssvnadmin 阅读全文
posted @ 2016-05-04 11:59 xkops 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: [root@svn shell]# cat repolist dev-arcdev-bmdev-crmdev-paydev-pmdev-portaldev-riskhrproductqarep-ops [root@svn shell]# cat svnbackup.sh #!/bin/bashrm  阅读全文
posted @ 2016-05-04 11:58 xkops 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: 1.安装配置apache2.2.18 http://download.csdn.net/download/YH555/3299526tar xf httpd-2.2.18.tar.bz2cd httpd-2.2.18./configure --prefix=/yc/usr/local/apache2 阅读全文
posted @ 2016-05-04 11:57 xkops 阅读(380) 评论(0) 推荐(0) 编辑
摘要: paramiko模块是一个远程连接服务器,全真模拟ssh2协议的python模块,借助paramiko源码包中的demos目录下:demo.py和interactive.py两个模块实现简单的堡垒机+审计功能。编写的run_demo.py脚本,可以根据登陆堡垒机的用户信息在数据库查询该用户所有可以登 阅读全文
posted @ 2016-05-04 11:33 xkops 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: 配置邮件分为两种情况: 第一种:使用远端邮件服务器发送报警邮件 Linux系统版本:CentOS6.5-64 下载mailx: http://nchc.dl.sourceforge.net/project/heirloom/heirloom-mailx/12.4/mailx-12.4.tar.bz2 阅读全文
posted @ 2016-05-04 10:09 xkops 阅读(1350) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页