centos7 安裝 openvswitch
阿新 • • 發佈:2017-09-30
system eve env ces .tar.gz nss too org 安裝 1.安裝依賴包:
2.預處理:
3.構建RPM包:
4.安裝:
5.啟動相關服務:
- 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
2.預處理:
- mkdir -p ~/rpmbuild/SOURCES
- wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz
- cp openvswitch-2.5.0.tar.gz ~/rpmbuild/SOURCES/
- tar xfz openvswitch-2.5.0.tar.gz
- sed ‘s/openvswitch-kmod, //g‘ openvswitch-2.5.0/rhel/openvswitch.spec > openvswitch-2.5.0/rhel/openvswitch_no_kmod.spec
3.構建RPM包:
- rpmbuild -bb --nocheck ~/openvswitch-2.5.0/rhel/openvswitch_no_kmod.spec
4.安裝:
- yum localinstall ~/rpmbuild/RPMS/x86_64/openvswitch-2.5.0-1.x86_64.rpm
5.啟動相關服務:
- systemctl start openvswitch.service
centos7 安裝 openvswitch