随笔分类 - python
摘要:安装 #centos7 默认python版本2.7.5 yum -y install python-pip #默认安装的pip版本为 升级 pip install --upgrade pip #报错 解决 #下载 get-pip.py wget https://bootstrap.pypa.io/2
阅读全文
摘要:需求:使用vim开发python,可以进行简单配置 set encoding=utf-8"去掉vi的一致性"set nocompatible"显示行号"set numberset nobackupset nowbset noswapfileset noundofileset showcmd" 隐藏滚
阅读全文
摘要:一,官网下载最新版python安装包 二,解压并编译安装
阅读全文
摘要:一,查看系统默认版本 [root@redhat7 ~]# python -VPython 2.7.5 二,安装依赖包 yum install epel-release -y 三,查看新版本 yum search easy_install 四,安装 yum install python34-pip 五
阅读全文
摘要:Playbook Language Example 实例一:apache.yml 1、mkdir /etc/ansible/playbooks 2、vim apache.yml 3、mkdir /static_files 在这里您将存储自定义index.html文件 4、执行 key:value -
阅读全文
摘要:一、安装ansible 1、 python版本需要2.6以上,不过通过centos7都会默认安装上python2.7.5,查看方法:python -V 2、 添加yum 源 a、 vim /etc/yum.repos.d/ansible b、 添加如下内容: [epel] name = all so
阅读全文

浙公网安备 33010602011771号