其他分享
首页 > 其他分享> > OpenvSwitch

OpenvSwitch

作者:互联网

 

 

 

 

 

安装OpenvSwitch
====================================================================================================================
方式一
https://blog.csdn.net/qq_21127151/article/details/124262331
设置系统环境
    sed -i '/SELINUX/s/enforcing/disabled/g' /etc/selinux/config
    setenforce 0
    systemctl stop firewalld.service
    systemctl disable firewalld.service

安装环境依赖
    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
    wget http://openvswitch.org/releases/openvswitch-2.5.4.tar.gz
    mkdir -p /root/rpmbuild/SOURCES
    cp openvswitch-2.5.4.tar.gz /root/rpmbuild/SOURCES/;cd /root/rpmbuild/SOURCES/
    tar -zxvf openvswitch-2.5.4.tar.gz
    ls /lib/modules/$(uname -r) -ln
    
    rpmbuild -bb --without check openvswitch-2.5.4/rhel/openvswitch.spec
    
    cd ../RPMS/x86_64/
    yum localinstall -y openvswitch-2.5.4-1.x86_64.rpm
    systemctl enable openvswitch.service
    systemctl start openvswitch.service

---------------------------------------------------------------------------------------------
方式二
    yum install openvswitch
    systemctl enable openvswitch
    systemctl start openvswitch

    如果当前软件源中没有openvswitch,可以通过阿里云官方镜像站(https://developer.aliyun.com/packageSearch?word=openvswitch)下载和操作系统版本对应的rpm包到本地再安装。 示例命令: yum localinstall openvswitch-2.9.0-3.el7.x86_64.rpm
安装OpenvSwitch

 

 

 

 

 

 

 

 

 

111111111111111111111111111111111111111

标签:OpenvSwitch,devel,rpmbuild,systemctl,openvswitch,rpm,2.5
来源: https://www.cnblogs.com/AllenWoo/p/16413002.html