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
  • 相关阅读:
    需求获取过程中的逆向沟通
    程序员==生 涯 篇
    算法设计
    灯的启示:微软对唐骏的面试题
    使用Gzip压缩提升WEB服务器性能
    简历误区
    招聘编辑的七道面试题
    web2.0及其相关技术
    经典面试题助你成功就业
    逗号网站推广营销策略
  • 原文地址:https://www.cnblogs.com/hugetong/p/9830536.html
Copyright © 2011-2022 走看看