懒人的装法:
wget http://mirror.beyondhosting.net/OpenVSwitch/openvswitch-2.3.1-1.el6.x86_64.rpm wget http://mirror.beyondhosting.net/OpenVSwitch/openvswitch-kmod-2.3.1-1.el6.x86_64.rpm wget http://mirror.beyondhosting.net/OpenVSwitch/kmod-openvswitch-2.3.1-1.el6.x86_64.rpm rpm -vih *.rpm modprobe openvswitch service openvswitch start
yum groupinstall "Development Tools" -y yum install rpmdevtools openssl-devel kernel-devel gcc redhat-rpm-config -y adduser ovswitch su - ovswitch cd wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz tar xzf openvswitch-2.3.1.tar.gz mkdir -p rpmbuild/SOURCES cp openvswitch-2.3.1.tar.gz rpmbuild/SOURCES/ cp openvswitch-2.3.1/rhel/openvswitch-kmod.files /home/ovswitch/rpmbuild/SOURCES/ sed ‘s/openvswitch-kmod, //g‘ openvswitch-2.3.1/rhel/openvswitch.spec > openvswitch-2.3.1/rhel/openvswitch_no_kmod.spec rpmbuild -bb openvswitch-2.3.1/rhel/openvswitch_no_kmod.spec exit yum localinstall rpmbuild/RPMS/x86_64/openvswitch-2.3.1.x86_64.rpm modprobe openvswitch service openvswitch start
本文出自 “尼古风锁丝愁过” 博客,请务必保留此出处http://smoke520.blog.51cto.com/9256117/1793073
原文地址:http://smoke520.blog.51cto.com/9256117/1793073