CentOS6.5 安装OpenVSwitch / CentOS6.5 install OpenVSwitch

CentOS6.5 安装OpenVSwitch

安装环境

yum install gcc clang openssl libcap* libtool -y
yum -y update
yum groupinstall -y 'development tools'

升级python到2.7

yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget
wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
xz -d Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar
cd Python-2.7.8
./configure --prefix=/usr/local
make
make altinstall
python -V
python2.7 -V
ln -s /usr/local/bin/python2.7 /usr/bin/python
yum remove python
ln -s /usr/local/bin/python2.7 /usr/bin/python

如果出现文件已经存在的话

cd /usr/bin/
rm -rf python
cd Python-2.7.8
ln -s /usr/local/bin/python2.7 /usr/bin/python
python -V
which python
cd ..

安装python

wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python2.7 setup.py install

安装pip

curl https://bootstrap.pypa.io/get-pip.py | python2.7 -
pip install six

配置yum

which yum
cd /usr/bin/yum
vi /usr/bin/yum
python2.7 -V
python2.6 -V

下载openvas(via.git)

git clone https://github.com/openvswitch/ovs.git
cd ovs
./boot.sh
./configure

Reference:
yum error
installation guide
安装python2.7

你可能感兴趣的:(CentOS6.5 安装OpenVSwitch / CentOS6.5 install OpenVSwitch)