Python 官方文档:入门教程 => 点击学习
yum install openssl openssl-develtar jxvf python-2.6.6.tar.bz2 cd Python-2.6.6./configuremake && make install[ro
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
--结束END--
本文标题: CentOS5.8 升级python至2
本文链接: http://www.lsjlt.com/news/186295.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0