openvswitch 2.1.2 安装完成后 启动 与 停止 shell脚本
来源:互联网 发布:阿里妈妈淘宝客官网 编辑:程序博客网 时间:2024/06/07 01:16
openvswitch 2.1.2 安装完成后,会经常遇到启动与停止的情况,为了避免重复手写启动停止的终端代码,最好将其写在不同的脚本里,方便下次调用。前提是已经安装好了openvswitch,并按照下面到语句建立好了数据库conf.db
mkdir -p /usr/local/etc/openvswitch ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
开始脚本:
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 --detachovs-vsctl --no-wait initovs-vswitchd --pidfile --detach
开启ovsdb-server、-vswtichd服务。
停止脚本:
kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`##cat ovs-brcompatd.pid ovs-controller.pid ovs-monitor-ipsec.pid##进入openvswitch的安装路径,杀死ovsdb-server 、ovs-vswitchd 进程。
0 0
- openvswitch 2.1.2 安装完成后 启动 与 停止 shell脚本
- Mac环境中Jenkins手动启动与停止-自定义shell脚本启动与停止
- linux环境在tomcat启动或者停止后执行shell脚本,脚本内容备份图片文件夹
- 分享Memcached shell启动停止脚本
- shell脚本启动,停止java应用程序
- linux 启动或停止jar shell脚本
- 避免启动container运行shell脚本执行完成后docker退出
- shell脚本运行1-启动停止一个服务,2-批量运行和停止服务,3-一个脚本运行批量运行
- shell脚本完成hadoop的集群安装
- 编写启动程序和停止程序的shell脚本
- [shell]管理 Sphinx 启动|停止|重新生成索引的脚本
- shell脚本控制jar的启动和停止
- 启动和停止Java应用程序的Shell脚本
- 启动和停止Java应用程序的Shell脚本
- 【甘道夫】Hadoop2.2.0集群启动和停止Shell脚本
- 【甘道夫】Hadoop2.2.0集群启动和停止Shell脚本
- 启动和停止Java应用程序的Shell脚本
- SHell启动服务停止重启脚本模板
- QT DLL 总结(全)
- (Bruce Molay)Unix/Linux编程实践教程读书笔记(一)----select/poll/epoll I/O多路复用
- PSI信息解析
- 十款热门PHP框架的浅析对比
- cache详解
- openvswitch 2.1.2 安装完成后 启动 与 停止 shell脚本
- 云计算之路:用Azure解决“找找看”磁盘IO问题
- ubuntu如何打开终端(terminal)?
- 文件上传
- CALayer和View的关系
- Spring源码分析之——导入spring-framework源代码到Eclipse
- 动态电压与频率调节在降低功耗中的作用
- 笔记:了解GLSL (OpenGL Shading Language)
- android 键盘 InputMethodManager