In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
one。 Ovs is compiled and installed from the source code:
Install dependencies:
# apt install make# apt install gcc # apt install build-essential# apt install libssl-dev# apt install libcap-ng-dev# apt install python2.7# apt install python-pip# pip install six# apt install autoconf # apt install automake# apt install libtool
Download the source package
# apt install git# git clone https://github.com/openvswitch/ovs.git (the downloaded git project directory is ~ / ovs)
Generate configuration file
#. / boot.sh (under the root directory of ovs project)
Configuration
#. / configure-with-linux=/lib/modules/$ (uname-r) / build
Compile
# make# make install# make modules_install# config_file= "/ etc/depmod.d/openvswitch.conf" # for module in datapath/linux/*.ko; do modname= "\ $(basename\ ${module})" echo "override\ ${modname%.ko} * extra" > > "\ $config_file" echo "override\ ${modname%.ko} * weak-updates" > > "\ $config_file" done# depmod-a # / sbin/modprobe openvswitch# / sbin/lsmod | grep openvswitch
Start
Export PATH=$PATH:/usr/local/share/openvswitch/scripts# ovs-ctl start
test
# ovs-vsctl show# ovs-vsctl add-br mybridge# ovs-vsctl add-port mybridge eth0
two。 Uninstall Ovs
After starting ovs, if you change the ovs source code and want to update the ovs service, do the following:
# ovs-ctl stop stops ovs service # ovs-dpctl show checks the kernel, a datapath# ovs-dpctl del-dp ovs-system of ovs-system will delete the datapath that appeared in the previous step (if you do not do this step, rmmod may report an error) # rmmod openvswitch uninstall the openvswitch kernel module and use lsmod | grep openvswitch does not have openvswitch# to enter the ovs source code directory, and recompile and install according to the above compilation steps
references
Open vSwitch on Linux, FreeBSD and NetBSD
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.