zoukankan      html  css  js  c++  java
  • database connection failed (Connection refused)

    ovsdb-server /etc/openvswitch/conf.db /etc/openvswitch/hw_vtep.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --remote=db:hardware_vtep,Global,managers --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=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor
    ovs-vsctl --no-wait init
    ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    [root@kunpeng82 ~]# ovs-vsctl show
    ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database connection failed (Connection refused)
    [root@kunpeng82 ~]#
    kill 不启动vtep
    ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock 
    --remote=db:Open_vSwitch,Open_vSwitch,manager_options 
    --private-key=db:Open_vSwitch,SSL,private_key 
    --certificate=db:Open_vSwitch,SSL,certificate 
    --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
    
    [root@kunpeng82 ~]# bash start_ovs.sh 
    [root@kunpeng82 ~]# ovs-vsctl --no-wait init
    [root@kunpeng82 ~]# ovs-vswitchd --log-file --detach --pidfile unix:/var/run/openvswitch/db.sock
    disable ovs-vtepd
    [root@kunpeng82 ~]# cat  /usr/lib/systemd/system/ovs-vtepd.service 
    [Unit]
    Description=Open vSwitch-based VTEP emulator
    After=openvswitch.service
    Requires=openvswitch.service
    
    [Service]
    Type=simple
    EnvironmentFile=/etc/sysconfig/openvswitch-vtep
    ExecStart=/usr/share/openvswitch/scripts/ovs-vtep --log-file=/var/log/openvswitch/ovs-vtep.log --pidfile=/var/run/openvswitch/ovs-vtep.pid $VTEP_SWITCH_NAME
    
    [root@kunpeng82 ~]# systemctl disable ovs-vtepd
    [root@kunpeng82 ~]# 
  • 相关阅读:
    Java SPI机制详解
    ElasticSearch核心概念和原理
    多线程基础-线程创建、线程方法、线程状态等
    MyBatis-日志、分页、一对多or多对一
    MyBatis-注解开发、XML全局配置
    SpringMVC-数据输出、Map、Model、视图解析、处理Json
    SpringMVC-@RequestMapping、@PathVariable、Rest、POJO封装、乱码问题
    lazy loading img 图片延迟加载
    google 地图,多个标记 js库
    Jquery各版本下载,附Jquery官网下载方法
  • 原文地址:https://www.cnblogs.com/dream397/p/13301406.html
Copyright © 2011-2022 走看看