标签:软件包 sys make source systemctl sel tool 构建 system
1. 关闭SELINUX
2.安装依赖包
yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config
yum -y install python-devel openssl-devel kernel-devel kernel-debug-devel libtool wget
3. 下载openvswitch软件包
wget http://openvswitch.org/releases/openvswitch-2.5.2.tar.gz
#mkdir -p ~/rpmbuild/SOURCES
#cp openvswitch-2.5.2.tar.gz ~/rpmbuild/SOURCES/
#cd ~/rpmbuild/SOURCES
#tar xvfz openvswitch-2.5.2.tar.gz
#sed ‘s/openvswitch-kmod, //g‘ openvswitch-2.5.2/rhel/openvswitch.spec > openvswitch-2.5.2/rhel/openvswitch_no_kmod.spec
4.构建RPM包
rpmbuild -bb --nocheck openvswitch-2.5.2/rhel/openvswitch_no_kmod.spec
5、安装
yum localinstall ~/rpmbuild/RPMS/x86_64/openvswitch-2.5.2-1.x86_64.rpm
6、启动服务
systemctl start openvswitch
7、检查OVS服务状态
systemctl status openvswitch
标签:软件包 sys make source systemctl sel tool 构建 system
原文地址:https://www.cnblogs.com/liujunjun/p/12074446.html