发布时间:2019-08-26 07:19:56编辑:auto阅读(2555)
yum install openssl openssl-devel
tar jxvf Python-2.6.6.tar.bz2
cd Python-2.6.6
./configure
make && make install
[root@relearn ~]# python
Python 2.6.6 (r266:84292, Aug 19 2015, 14:08:38)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
install python-setuptools
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
python ez_setup.py --insecure
easy_install pip
pip install paramiko PyYAML Jinja2 httplib2 six
pip install ansible
yum install python-simplejson -y
yum install libselinux-python -y
ansible执行的时候会按照以下顺序查找配置项:
* ANSIBLE_CONFIG (环境变量)
* ansible.cfg (当前目录下)
* .ansible.cfg (用户家目录下)
* /etc/ansible/ansible.cfg
上一篇: python路由跟踪(闲来无聊写着玩)
下一篇: python __file__ 和 sy
54147
40908
35428
31055
25949
25682
24131
19676
15738
15202
1965°
1813°
1899°
1992°
1976°
2154°
2113°
1934°
2011°
1994°