CentOS6.5+Python2.7+ GIT +IPython

下载vmware12:

链接:http://pan.baidu.com/s/1kUGhZyZ 密码:rdv8

下载centos6.8镜像:

http://mirrors.163.com/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso

系统安装:

安装过程(见centos6.5安装文档)

配置网络:

# vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=00:0c:29:55:8c:95

TYPE=Ethernet

UUID=fa5330f5-8b74-4db6-8285-e3689ecbc133

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

IPADDR=192.168.1.63

NETMASK=255.255.255.0

DNS2=8.8.8.8

GATEWAY=192.168.1.1

DNS1=192.168.1.1

其它安装:

本地yum源的配置

#vim /etc/yum.repo.d/centos6.7.repo

[name]

name=centos6.7

baseurl=file:///mnt

enabled=1

gpgcheck=0

#mount  /dev/cdrom/mnt

mount: block device /dev/sr0 is write-protected, mountingread-only

关闭防火墙并加入开机启动:

/etc/init.d/iptables stop 关闭防火墙

关闭selinux

#setenforce 0   临时关闭

RPM源安装:

# rpm -ivhhttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Python源码安装:

#yum install –y gcc gcc-c++ readline-devel

#yum install -y mysql mysql-server mysql-devel zlibzlib-devel

#wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz

#tar zxvf Python-2.7.6.tgz

#cd Python-2.7.6

#./configure

#make && make install

#rm /usr/bin/python

#ln /usr/local/bin/python2.7 /usr/bin/

#ln /usr/local/bin/python2.7 /usr/bin/python

PIP2.7安装

wget https://bootstrap.pypa.io/get-pip.pypython2.7get-pip.py

pip2.7 install flask

pip2.7 install MySQL-python

GIT安装

# yum install curl-devel expat-devel gettext-developenssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

# wgethttps://www.kernel.org/pub/software/scm/git/git-1.9.4.tar.gz

# tar xzf git-1.9.4.tar.gz

# cd git-1.9.4

# make prefix=/usr/local/git all

# make prefix=/usr/local/git install

# echo "export PATH=$PATH:/usr/local/git/bin">> /etc/bashrc

# source /etc/bashrc

#Mysql 配置文件修改

#vim /etc/my.conf

[mysqld]

datadir=/var/lib/mysql

socket=/var/lib/mysql/mysql.sock

user=mysql

# Disabling symbolic-links is recommended to preventassorted security risks

symbolic-links=0

default-character-set = utf8

character_set_server = utf8

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

default-character-set = utf8

[client]

default-character-set = utf8

到此为止配置python环境安装结束

时间: 2024-11-09 10:20:40

CentOS6.5+Python2.7+ GIT +IPython的相关文章

【docker】CentOS6.8+Python2.7+selenium+Firefox的搭建

当前Docker容器配置: Centos6.8 python2.6.6 目标Docker容器配置: Centos6.8 python2.7 selenium 3.141.0 geckodriver 0.15 firefox 52.8.0 Pillow 6.1.0 pytesseract 0.2.7 安装依赖环境 yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel

脚本自动化装centos6.5 python2.6升级2.7

centos6.5 python2.6升级2.7 前提: 现有的yum源, 并且能通网 脚本会自动安装python2.7.8  . pip . easy .setuptools 正文: 代码内容 #!/bin/bash # a script to install python 2.7 on CentOS 6.x system. # CentOS 6.x has python 2.6 by default, while some software (e.g. django1.7) # need p

CentOS6升级Python2.6到3.7,错误处理[No module named ‘_ctyp

CentOS6升级Python2.6到3.7,错误处理[No module named '_ctypes'] 因开发需要,在CentOS 6 服务器将Python2进行升级到Python3.由于工作中内网的限制,这里使用的是手动安装的方式进行. 一.查看当前python版本 [[email protected] ~]$ python -V Python 2.6.6 二.官网下载Python稳定版本(当前3.7.2)进行安装 这里下载软件使用python用户,安装使用root用户进行 # 下载步骤

Centos6.5 python2.7连接mysql数据库

1.环境是centos6.5 32位系统,python版本是2.7.12,mysql版本是5.5.22.准备好所需压缩包,MySQL-python-1.2.4b4.tar.gz  pip-6.0.7.tar.gz         setuptools-12.0.3 2.用python操作mysql首先需要导入MySQLdb模块,在安装这个模块之前最后安装好setuptools和pip,在这之前需要安装好zlib zlib-devel模块. #yum install -y zlib-devel b

CentOS6.6安装Python及IPython

CentOS6.6自带的Python为2.6,此为安装2版本最新的Python2.7.9 一.下载python2.7.9和ipython3.1.0 wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz wget https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz 二.安装readline-devel,使python安装完成后支持退格

centos6.5安装部署git服务器(gitlab)

环境准备 python版本2.6 git版本 1.8.4.1 ruby版本ruby-2.0.0-p353 gitlab-shell版本 v1.8.0 gitlab版本6.4.3 因centos6系列的python版本是2.6的,已经支持,所以不必升级python版本. 在centos5下面需要升级python版本>2.5 安装epel的yum源 1 yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-

CentOS6下Jenkins连接Git服务器出错的问题

今天研究GitLab+Jenkins自动集成时,出现Failed to connect to repository : Command "git config --local credential.helper store --file=/tmp/git2956041026506359040.credentials" returned status code 129:stdout: stderr: error: unknown option `local'错误发现时CentOS6安装的

Centos6.5 Python2.7+Supervisor 环境安装

Centos6.5 Python+Supervisor 环境安装 6.5自带的python版本为2.6,首先下载python2.7.6 cd py2.7 ./configure --prefix=/usr/local/python2.7 make make install 接下来需要创建一个链接来使系统默认python变为python2.7 ln -fs /usr/local/python2.7/bin/python2.7 /usr/bin/python 更改后yum会无法运行,此时修改/usr

centos6 升级python2.6 到 python2.7

由于开发库依赖于python27,而自己安装的centos6.8自带的python是2.6.6. 因为centos的yum依赖于python26因此不打算覆盖26. 步骤如下: 1.官网下载源码压缩包 wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz 2.加压到当前目录 tar -xzvf Python-2.7.13.tgz 3.进入目录编译 cd Python-2.7.13 ./configure --prefix=