zoukankan      html  css  js  c++  java
  • [ovs] openvswitch 从源码编译安装

    文档:https://docs.openvswitch.org/en/latest/intro/install/general/

    1. 

    yum install autoconf automake libtool

    2.

    ./boot.sh

    3.

    ./configure

    4. 

     yum install kernel-devel
    [root@base-centos7-1804 openvswitch-2.10.1]# ./configure --with-linux=/lib/modules/3.10.0-862.14.4.el7.x86_64/build/

    5.

    make
    make install

    6. 

    启动

    [root@base-centos7-1804 ~]# /usr/local/share/openvswitch/scripts/ovs-ctl start

    查看

    [root@base-centos7-1804 ~]# ps -ef |grep ovs
    root      1398     1  0 16:38 ?        00:00:00 ovsdb-server: monitoring pid 1399 (healthy)
    root      1399  1398  0 16:38 ?        00:00:00 ovsdb-server /usr/local/etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/usr/local/var/run/openvswitch/db.sock --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/usr/local/var/log/openvswitch/ovsdb-server.log --pidfile=/usr/local/var/run/openvswitch/ovsdb-server.pid --detach --monitor
    root      1442     1  0 16:38 ?        00:00:00 ovs-vswitchd: monitoring pid 1443 (healthy)
    root      1443  1442  0 16:38 ?        00:00:00 ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/usr/local/var/log/openvswitch/ovs-vswitchd.log --pidfile=/usr/local/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor
    root      1468  1330  0 16:38 pts/0    00:00:00 grep --color=auto ovs
    [root@base-centos7-1804 ~]# lsmod |grep open
    openvswitch           323507  0 
    tunnel6                13254  1 openvswitch
    nf_nat_ipv6            14131  1 openvswitch
    nf_nat_ipv4            14115  1 openvswitch
    nf_defrag_ipv6         35104  2 openvswitch,nf_conntrack_ipv6
    nf_nat                 26787  3 openvswitch,nf_nat_ipv4,nf_nat_ipv6
    nf_conntrack          133053  6 openvswitch,nf_nat,nf_nat_ipv4,nf_nat_ipv6,nf_conntrack_ipv4,nf_conntrack_ipv6
    libcrc32c              12644  4 xfs,openvswitch,nf_nat,nf_conntrack
  • 相关阅读:
    [WPF系列]基础学习(一) WPF是什么?
    [WPF系列]从基础起步学习系列计划
    [WPF系列]Adorner应用-自定义控件ImageHotSpot
    Windows Phone 8 开发必备资源
    WPF:数据和行为
    WPF触发器(Trigger)
    【WPF】Silverlight中的Action与Trigger
    【WPF】 Behavior
    Struts2 拦截器配置及使用
    在新建FileInputStream时使用当前相对路径或者绝对路径作为参数的问题
  • 原文地址:https://www.cnblogs.com/hugetong/p/9830536.html
Copyright © 2011-2022 走看看