[Linux系统] CentOS7.x mini安装OVS

命令均在root用户下运行:

一、关闭防护墙及selinux

sed -i '/SELINUX/s/enforcing/disabled/g' /etc/selinux/config
setenforce 0
systemctl stop firewalld.service
systemctl disable firewalld.service
二、安装网桥工具
yum install -y bridge-utils wget
三、安装依赖包
yum install -y python-six selinux-policy-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool
四、cd ~
cd ~
五、下载源码
wget http://openvswitch.org/releases/openvswitch-2.5.4.tar.gz
六、创建OVS rpm包
mkdir -p ~/rpmbuild/SOURCES
tar -zxvf openvswitch-2.5.4.tar.gz
cp openvswitch-2.5.4.tar.gz ~/rpmbuild/SOURCES/
ls /lib/modules/$(uname -r) -ln
rpmbuild -bb --without check openvswitch-2.5.4/rhel/openvswitch.spec
cd rpmbuild/RPMS/x86_64/
七、安装OVS
yum localinstall -y openvswitch-2.5.4-1.x86_64.rpm
八、启动服务
systemctl enable openvswitch.service
systemctl start openvswitch.service

 

保持学习,否则迟早要被淘汰*(^ 。 ^ )***
posted @ 2018-03-23 00:06  风间悠香  阅读(793)  评论(0编辑  收藏  举报