{"id":39311,"date":"2023-09-29T19:55:00","date_gmt":"2023-09-29T11:55:00","guid":{"rendered":"\/\/www.viralrail.com\/?p=39311"},"modified":"2023-09-29T19:55:00","modified_gmt":"2023-09-29T11:55:00","slug":"mzlznlsy","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/39311.html","title":{"rendered":"mbus_ctrl\u6307\u4ee4\uff1a\u5728\u54ea\u91cc\u4f7f\u7528\uff1f"},"content":{"rendered":"

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236\u548c\u7ba1\u7406\u591a\u4e2a\u8bbe\u5907\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002<\/strong>\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u6709\u6548\u5730\u7ba1\u7406\u8bbe\u5907\uff0c\u66f4\u5feb\u5730\u5904\u7406\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4f53\u7cfb\u7edf\u7684\u6548\u7387\u3002\u672c\u6587\u5c06\u4ecb\u7ecdmbus_ctrl\u6307\u4ee4\u7684\u57fa\u672c\u6982\u5ff5\u548c\u4f7f\u7528\u573a\u666f\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u6765\u66f4\u6709\u6548\u5730\u7ba1\u7406\u8bbe\u5907\u3002<\/p>\n

mbus_ctrl\u6307\u4ee4\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u79cd\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u6709\u6548\u5730\u7ba1\u7406\u8bbe\u5907\uff0c\u66f4\u5feb\u5730\u5904\u7406\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4f53\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

  mbus_ctrl\u6307\u4ee4\u7684\u57fa\u672c\u539f\u7406<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u662f\u57fa\u4e8eMaster-Slave\u6a21\u5f0f\u7684\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002\u4e3b\u8bbe\u5907\uff08Master\uff09\u901a\u8fc7mbus_ctrl\u6307\u4ee4\u53d1\u9001\u6307\u4ee4\uff0c\u4ece\u8bbe\u5907\uff08Slave\uff09\u63a5\u6536\u5e76\u6267\u884c\u6307\u4ee4\u3002\u56e0\u6b64\uff0c\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

  mbus_ctrl\u6307\u4ee4\u7684\u4f7f\u7528\u573a\u666f<\/h3>\n

  mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u7528\u4e8e\u5404\u79cd\u573a\u666f\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u7ba1\u7406\u3001\u5b58\u50a8\u7ba1\u7406\u3001\u7f51\u7edc\u7ba1\u7406\u7b49\u3002\u4f8b\u5982\uff0c\u5728\u670d\u52a1\u5668\u7ba1\u7406\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u6765\u63a7\u5236\u670d\u52a1\u5668\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u4ee5\u53ca\u66f4\u65b0\u670d\u52a1\u5668\u914d\u7f6e\uff1b\u5728\u5b58\u50a8\u7ba1\u7406\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u6765\u63a7\u5236\u5b58\u50a8\u8bbe\u5907\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u4ee5\u53ca\u66f4\u65b0\u5b58\u50a8\u914d\u7f6e\uff1b\u5728\u7f51\u7edc\u7ba1\u7406\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u6765\u63a7\u5236\u7f51\u7edc\u8bbe\u5907\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u4ee5\u53ca\u66f4\u65b0\u7f51\u7edc\u914d\u7f6e\u7b49\u3002<\/p>\n

mbus_ctrl\u6307\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5<\/h2>\n

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u79cd\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u63a7\u5236\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002\u4e0b\u9762\u5c31\u4ecb\u7ecdmbus_ctrl\u6307\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n

  1.\u5b89\u88c5mbus_ctrl\u6307\u4ee4<\/h3>\n

  \u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5mbus_ctrl\u6307\u4ee4\uff0c\u4ee5\u4fbf\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4f7f\u7528\u5b83\u3002\u5b89\u88c5mbus_ctrl\u6307\u4ee4\u7684\u65b9\u6cd5\u53ef\u80fd\u4f1a\u56e0\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u540c\u800c\u6709\u6240\u4e0d\u540c\uff0c\u4f46\u662f\u901a\u5e38\u6765\u8bf4\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5mbus_ctrl\u6307\u4ee4\uff1a<\/p>\n

sudo apt-get install mbus_ctrl<\/pre>\n

  2.\u4f7f\u7528mbus_ctrl\u6307\u4ee4<\/h3>\n

  \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u4e86\u3002mbus_ctrl\u6307\u4ee4\u6709\u5f88\u591a\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4f7f\u7528\u4e0d\u540c\u7684\u6307\u4ee4\uff0c\u4ee5\u4fbf\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u63a7\u5236\u8bbe\u5907\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u6765\u63a7\u5236\u670d\u52a1\u5668\u7684\u8fd0\u884c\u72b6\u6001\uff1a<\/p>\n

mbus_ctrl start server<\/pre>\n

  3.\u68c0\u67e5mbus_ctrl\u6307\u4ee4\u7684\u8fd0\u884c\u72b6\u6001<\/h3>\n

  \u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u6765\u68c0\u67e5mbus_ctrl\u6307\u4ee4\u7684\u8fd0\u884c\u72b6\u6001\uff1a<\/p>\n

mbus_ctrl status<\/pre>\n

\u603b\u7ed3<\/h2>\n

  mbus_ctrl\u6307\u4ee4\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236\u548c\u7ba1\u7406\u591a\u4e2a\u8bbe\u5907\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002<\/strong>\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u7ba1\u7406\u548c\u63a7\u5236\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002\u672c\u6587\u4ecb\u7ecd\u4e86mbus_ctrl\u6307\u4ee4\u7684\u57fa\u672c\u6982\u5ff5\u3001\u4f7f\u7528\u573a\u666f\u548c\u4f7f\u7528\u65b9\u6cd5\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528mbus_ctrl\u6307\u4ee4\u6765\u66f4\u6709\u6548\u5730\u7ba1\u7406\u8bbe\u5907\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

mbus_ctrl\u6307\u4ee4\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236\u548c\u7ba1\u7406\u591a\u4e2a\u8bbe\u5907\u7684\u6307\u4ee4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u63a7\u5236\u591a\u4e2a\u8bbe\u5907\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u3001\u5b58\u50a8\u8bbe\u5907\u548c\u7f51\u7edc\u8bbe\u5907\u7b49\u3002\u5b83\u53ef<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[291],"class_list":["post-39311","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-mbus"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39311"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=39311"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39311\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=39311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=39311"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=39311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}