{"id":126136,"date":"2020-01-16T07:56:57","date_gmt":"2020-01-15T23:56:57","guid":{"rendered":"http:\/\/4563.org\/?p=126136"},"modified":"2020-01-16T07:56:57","modified_gmt":"2020-01-15T23:56:57","slug":"nebula-%e7%9a%84-launchd-plist-%e7%94%a8%e4%ba%8e%e5%ae%9e%e7%8e%b0-macos-%e4%b8%8a%e5%bc%80%e6%9c%ba%e8%87%aa%e5%8a%a8%e5%90%af%e5%8a%a8-nebula","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=126136","title":{"rendered":"Nebula \u7684 launchd.plist \u7528\u4e8e\u5b9e\u73b0 macOS \u4e0a\u5f00\u673a\u81ea\u52a8\u542f\u52a8 Nebula"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Nebula \u7684 launchd.plist \u7528\u4e8e\u5b9e\u73b0 macOS \u4e0a\u5f00\u673a\u81ea\u52a8\u542f\u52a8 Nebula               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Livid <\/span>  <span><i><\/i> 91<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Nebula \u662f Slack \u5f00\u6e90\u7684\u4e00\u6b3e\u7528\u4e8e\u642d\u5efa overlay network \u7684\u5de5\u5177\uff0c\u5728\u5f00\u6e90\u4e4b\u524d\u5df2\u7ecf\u5728 Slack \u5185\u90e8\u4f7f\u7528\u4e86\u4e24\u5e74\u591a\u3002<\/p>\n<p>https:\/\/www.v2ex.com\/t\/621442<\/p>\n<p>\u6700\u8fd1\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\uff0c\u89c9\u5f97\u975e\u5e38\u597d\u7528\u3002\u6240\u4ee5\u7814\u7a76\u4e86\u4e00\u4e0b\u600e\u4e48\u6837\u8ba9\u5b83\u5728 macOS \u4e0a\u81ea\u52a8\u542f\u52a8\uff0c\u76ee\u524d\u5728 Homebrew \u91cc\u8fd8\u6ca1\u6709\u5305\u3002<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u8ba9 Nebula \u5728 macOS \u4e0a\u5f00\u673a\u5c31\u81ea\u52a8\u542f\u52a8\u7684 launchd.plist \u811a\u672c\u3002<\/p>\n<p><code>sudo vi \/Library\/LaunchDaemons\/com.slack.nebula.plist<\/code><\/p>\n<p>\u5185\u5bb9\uff1a<\/p>\n<pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt; &lt;plist version=\"1.0\"&gt;   &lt;dict&gt;     &lt;key&gt;Label&lt;\/key&gt;     &lt;string&gt;com.slack.nebula&lt;\/string&gt;     &lt;key&gt;KeepAlive&lt;\/key&gt;     &lt;true\/&gt;     &lt;key&gt;RunAtLoad&lt;\/key&gt;     &lt;true\/&gt;     &lt;key&gt;ProgramArguments&lt;\/key&gt;     &lt;array&gt;       &lt;string&gt;\/usr\/local\/bin\/nebula&lt;\/string&gt;       &lt;string&gt;-config&lt;\/string&gt;       &lt;string&gt;\/usr\/local\/etc\/nebula.yaml&lt;\/string&gt;     &lt;\/array&gt;     &lt;key&gt;StandardErrorPath&lt;\/key&gt;     &lt;string&gt;\/dev\/null&lt;\/string&gt;     &lt;key&gt;StandardOutPath&lt;\/key&gt;     &lt;string&gt;\/dev\/null&lt;\/string&gt;   &lt;\/dict&gt; &lt;\/plist&gt; <\/code><\/pre>\n<p>\u7136\u540e\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b <code>sudo launchctl load com.slack.nebula.plist<\/code>\uff0c\u56e0\u4e3a\u589e\u52a0\u7528\u6237\u6001\u7f51\u5361\u9700\u8981 root \u6743\u9650\uff0c\u6240\u4ee5\u9700\u8981\u7528 sudo \u6267\u884c\u3002\u5982\u679c\u4f60\u7684 Nebula \u914d\u7f6e\u6587\u4ef6\u4e0d\u5728 <code>\/usr\/local\/etc\/nebula.yaml<\/code> \u8fd9\u4e2a\u4f4d\u7f6e\u90a3\u4e48\u5c31\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u5bf9 plist \u5185\u5bb9\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"65907\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ec0\u4e48\u60c5\u51b5\u4e0b\u9700\u8981\u7528\u8fd9\u7c7b\u5de5\u5177\uff0c\u60f3\u4e0d\u5230\u4f7f\u7528\u573a\u666f\u5440\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"65908\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Livid <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzw \u6211\u8fd9\u91cc\u7684\u573a\u666f\u662f\u9700\u8981\u4ece\u5916\u9762\u7684\u7f51\u7edc\u5b89\u5168\u5730\u8fde\u5230\u5185\u7f51\u7684\u5f00\u53d1\u670d\u52a1\u5668\u4e0a\u3002\u8fd9\u4e2a\u65b9\u6848\u6bd4 VPN \u597d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"65909\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hronro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7ed9 Homebrew \u63d0\u4e00\u4e2a PR \u554a\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"65910\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Livid <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hronro \u8fd9\u4e2a\u5305\u5e94\u8be5\u8fdf\u65e9\u4f1a\u6709\u5b98\u65b9 maintainer \u7684\uff0c\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"65911\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hronro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Livid #4 \u611f\u89c9 Homebrew \u4e0d\u50cf\u662f\u6bcf\u4e2a Formulae \u90fd\u6709\u56fa\u5b9a maintainer \u7684\uff0c\u5e94\u8be5\u662f\u8c01\u90fd\u53ef\u4ee5\u53bb\u63d0 PR \u7684\u3002\u6211\u67e5\u4e86\u4e00\u4e0b\uff0c\u8c8c\u4f3c\u73b0\u5728\u8fd8\u6ca1\u6709 Nenula \u7684 PR\u3002https:\/\/github.com\/Homebrew\/homebrew-core                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"65912\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Livid #2 \u5468\u672b\u8bd5\u4e00\u4e0b, \u6709\u4e00\u4e2a\u53f0\u670d\u52a1\u5668\u7528\u6765\u5f53 lighthouse, \u5176\u4ed6\u6ca1\u6709\u516c\u7f51 ip. <\/p>\n<p>\u7ed3\u679c\u662f: \u6709\u4e9b\u6210\u529f,\u6709\u4e9b\u4e0d\u6210\u529f.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Nebula \u7684 launchd.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/126136"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126136"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/126136\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}