Centos7安装ovs

2020-10-15 10:29:16 浏览数 (1)

设置系统环境

代码语言:javascript复制
sed -i '/SELINUX/s/enforcing/disabled/g' /etc/selinux/config
setenforce 0
systemctl stop firewalld.service
systemctl disable firewalld.service

cat /etc/selinux/config 检查一下

安装环境依赖

代码语言:javascript复制
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 wget net-tools

安装openvswitch

代码语言:javascript复制
wget http://openvswitch.org/releases/openvswitch-2.5.4.tar.gz
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/
yum localinstall -y openvswitch-2.5.4-1.x86_64.rpm
systemctl enable openvswitch.service
systemctl start openvswitch.service

标题:Centos7安装ovs

作者:Eric1997

地址:https://cloud.tencent.com/developer/article/1717516

QQ:

0 人点赞