Chinaunix首页 | 论坛 | 博客
  • 博客访问: 278173
  • 博文数量: 81
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-19 15:16
文章分类

全部博文(81)

文章存档

2021年(1)

2016年(3)

2015年(6)

2014年(6)

2013年(33)

2012年(32)

分类: LINUX

2016-12-26 17:06:35

[root@autodeploy ~]# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y

[root@autodeploy ~]# mkdir ansible
[root@autodeploy ~]# cd ansible/
[root@autodeploy ansible]# wget
[root@autodeploy ansible]# tar -zxvf Python-2.7.8.tgz

[root@autodeploy ansible]# cd Python-2.7.8
[root@autodeploy Python-2.7.8]# ./configure --prefix=/usr/local
....
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
....
[root@autodeploy Python-2.7.8]#yum groupinstall "Development Tools"


   26  ./configure --prefix=/usr/local
   27  make
   28  cd ansible/
   29  ls
   30  ls -lrt
   31  wget
   32  wget
   33  wget
   34  wget
   35  wget
   36  wget
   37  ls
   38  tar xvzf pycrypto-2.6.1.tar.gz
   39  cd pycrypto-2.6.1
   40  ls
   41  python setup.py install
   42  cd ..
   43  tar xvzf yaml-0.1.5.tar.gz
   44  cd yaml-0.1.5
   45  ls
   46  ./configure --prefix=/usr/local
   47  make
   48  make install
   49  cd ,,
   50  cd ..
   51  tar xvzf PyYAML-3.11.tar.gz
   52  cd PyYAML-3.11
   53  python setup.py install
   54  cd ..
   55  tar xvzf MarkupSafe-0.9.3.tar.gz
   56  cd MarkupSafe-0.9.3
   57  python setup.py install
   58  cd ..
   59  tar xvzf Jinja2-2.7.3.tar.gz
   60  cd Jinja2-2.7.3
   61  python setup.py install
   62  cd ..
   63  tar xvzf ecdsa-0.11.tar.gz
   64   cd ecdsa-0.11
   65  python setup.py install
   66  cd ..
   67   tar xvzf paramiko-1.15.1.tar.gz
   68  cd paramiko-1.15.1
   69  python setup.py install
   70  cd ..
   71  tar xvzf simplejson-3.6.5.tar.gz
   72   cd simplejson-3.6.5
   73  python setup.py install
   74  cd ..
   75  tar xvzf ansible-1.7.2.tar.gz
   76  ls
   77  ls -lrt
   78  wget
   79  ls -l
   80  rm -rf v1.7.2.tar.gz.2
   81  rm -rf v1.7.2.tar.gz.1
   82  ls
   83  tar -zxvf v1.7.2.tar.gz
   84  ls
   85  cd ansible-1.7.2/
   86  l
   87  ls
   88  python setup.py install
   89  mkdir -p /etc/ansible
   90  vim /etc/ansible/ansible.cfg
   91  cd /et
   92  cd /etc
   93  cd ansible/
   94  l
   95  ls
   96  ls -l
   97  ssh-keygen -t rsa -P ''
   98  ls -l /root/.ssh/id_rsa.pub
   99  date
  100  vim /etc/ansible/ansible.cfg
  101  vim /etc/ansible/hosts
  102  vim /etc/ansible/ansible.cfg
  103  ls -la /root/.ssh/
  104  scp /root/.ssh/id_rsa.pub
  105  cd /etc/ansible/
  106  ls
  107  cat hosts
  108  vim hosts
  109  ls -l
  110  cat hosts
  111  ansible "Avamar servers" -m command -a 'uptime'
  112  ls
  113  pwd
  114  >ansible.cfg
  115  vim ansible.cfg
  116  ansible "Avamar servers" -m command -a 'uptime'
  117  ansible "Avamar servers" -m command -a 'df -h'
  118  ansible "Avamar servers" -m command -a 'uptime'
  119  ansible "Avamar servers" -m command -a 'ps'
  120  ansible "Avamar servers" -m command -a 'ifconfig bond0'



阅读(1093) | 评论(0) | 转发(0) |
0

上一篇:expect

下一篇:根据IP 查询所有域名

给主人留下些什么吧!~~