{"id":5335,"date":"2022-09-29T17:18:42","date_gmt":"2022-09-29T09:18:42","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5335"},"modified":"2022-09-29T17:18:42","modified_gmt":"2022-09-29T09:18:42","slug":"macos%e7%b3%bb%e7%bb%9f%e7%9a%84%e5%90%af%e5%8a%a8%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5335.html","title":{"rendered":"macOS\u7cfb\u7edf\u7684\u542f\u52a8\u9879"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u7b80\u5355\u6574\u7406\u4e00\u4e0bmacOS\u7cfb\u7edf\u5f00\u673a\u542f\u52a8\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u65b9\u4fbf\u4ee5\u540e\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u8981\u5173\u5fc3macOS\u7cfb\u7edf\u7684\u542f\u52a8\u9879\uff1f<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u4e3a\u4e86\u65b9\u4fbf\u4f7f\u7528<\/strong>\uff0c\u6211\u4eec\u5e0c\u671b\u67d0\u4e9b\u8f6f\u4ef6\u5728\u5f00\u673a\uff08\u767b\u5f55\uff09\u540e\u81ea\u52a8\u542f\u52a8\uff0c\u6bd4\u5982 mysql \u670d\u52a1\uff1b<\/li><li><strong>\u4e3a\u4e86\u51cf\u5c11\u8d44\u6e90\u5360\u7528\u4ee5\u53ca\u51fa\u4e8e\u5b89\u5168\u8003\u8651<\/strong>\uff0c\u8fd8\u6709\u4e00\u4e9b\u9ed8\u8ba4\u5f00\u673a\uff08\u767b\u5f55\uff09\u540e\u542f\u52a8\u7684\u8f6f\u4ef6\u6211\u4eec\u4e0d\u60f3\u8ba9\u5b83\u81ea\u52a8\u542f\u52a8\uff0c\u5f88\u591a\u4e0d\u5e38\u7528\u7684\u8f6f\u4ef6\u4ee5\u53ca\u6211\u4eec\u6ca1\u60f3\u5230\u7684\u7a0b\u5e8f\u3002<\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">launchd \u662f\u4ec0\u4e48\uff1f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>Wikipedia defines launchd as \"a unified, open-source service management framework for starting, stopping and managing daemons, applications, processes, and scripts. Written and designed by Dave Zarzycki at Apple, it was introduced with Mac OS X Tiger and is licensed under the Apache License.\"<\/code><\/pre>\n\n\n\n<p>\u6839\u636e\u4e0a\u9762\u7684\u63cf\u8ff0<strong>\u53ef\u4ee5\u8ba4\u4e3alaunchd\u662f\u4e00\u5957\u7edf\u4e00\u7684\u5f00\u6e90\u670d\u52a1\u7ba1\u7406\u6846\u67b6\uff0c\u5b83\u7528\u4e8e\u542f\u52a8\u3001\u505c\u6b62\u4ee5\u53ca\u7ba1\u7406\u540e\u53f0\u7a0b\u5e8f\u3001\u5e94\u7528\u7a0b\u5e8f\u3001\u8fdb\u7a0b\u548c\u811a\u672c\u3002<\/strong>\u5b83\u662f\u7531Apple\u5f00\u53d1\u7684\uff0c\u5e76\u5728 Mac OS X Tiger \u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7b2c\u4e00\u6b21\u88ab\u5f15\u5165\uff0c\u5e76\u57fa\u4e8e Apache License \u8fdb\u884c\u6388\u6743\u3002<\/p>\n\n\n\n<p>launchd \u662fmacOS\u7cfb\u7edf\u4e0a\u7b2c\u4e00\u4e2a\u542f\u52a8\u7684\u8fdb\u7a0b\uff0c\u8be5\u8fdb\u7a0b(\/sbin\/launchd)\u7684PID\u4e3a1\uff0c\u6574\u4e2a\u7cfb\u7edf\u7684\u5176\u4ed6\u8fdb\u7a0b\u90fd\u662f\u5b83\u521b\u5efa\u7684\u3002<strong>\u5f53launchd\u542f\u52a8\u540e\uff0c\u5b83\u4f1a\u626b\u63cf \/System\/Library\/LaunchDaemons \u548c \/Library\/LaunchDaemons \u4e2d\u7684plist\u6587\u4ef6\u5e76\u52a0\u8f7d\u4ed6\u4eec\uff1b\u5f53\u8f93\u5165\u5bc6\u7801\u767b\u5f55\u7cfb\u7edf\u540e\uff0claunchd\u4f1a\u626b\u63cf \/System\/Library\/LaunchdAgents\u3001\/Library\/LaunchAgents\u3001~\/Library\/LaunchAgents \u8fd9\u4e09\u4e2a\u76ee\u5f55\u4e2d\u7684plist\u6587\u4ef6\u5e76\u52a0\u8f7d\u5b83\u4eec\u3002<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">LaunchAgents \u548c LaunchDaemons \u7684\u5f02\u540c<\/h5>\n\n\n\n<p>\u5b88\u62a4\u8fdb\u7a0b(Daemon)\u662f\u5728\u540e\u53f0\u8fd0\u884c\u7684\u7a0b\u5e8f\uff0c\u4e0d\u9700\u8981\u7528\u6237\u8f93\u5165\u3002\u4f8b\u5982\uff0c\u5178\u578b\u7684\u5b88\u62a4\u8fdb\u7a0b\u4e00\u822c\u7528\u4e8e\u6267\u884c\u65e5\u5e38\u7ef4\u62a4\u4efb\u52a1\u6216\u5728\u6709\u8bbe\u5907\u8fde\u5165\u65f6\u8fdb\u884c\u6076\u610f\u8f6f\u4ef6\u626b\u63cf\u3002(A daemon is a program running in the background without requiring user input. A typical daemon might for instance perform daily maintenance tasks or scan a device for malware when it is connected.)<\/p>\n\n\n\n<p>\u4e00\u53e5\u8bdd\u63cf\u8ff0\u5c31\u662f\u2014\u2014\u5bf9\u4e8elaunchd\u6765\u8bf4\uff0c<strong>Agent\u548cDaemon\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u4ee3\u7406(Agent)\u662f\u4ee5\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u6743\u9650\u8fd0\u884c\u7684\uff0c\u800c\u5b88\u62a4\u8fdb\u7a0b(Daemon)\u662f\u4ee5root\u6216\u901a\u8fc7UserName\u952e\u6307\u5b9a\u7684\u7528\u6237\u6743\u9650\u8fd0\u884c\u7684\u3002<\/strong><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">\u5f53\u7535\u8111\u5f00\u673a\uff0cmacOS\u7cfb\u7edf\u542f\u52a8\u540e\uff0c\u5b88\u62a4\u8fdb\u7a0b(Daemon)\u5c31\u4f1a\u542f\u52a8\uff1b\u800c\u4ee3\u7406(Agent)\u53ea\u6709\u5728\u7528\u6237\u8f93\u5165\u5bc6\u7801\uff0c\u767b\u5f55\u7cfb\u7edf\u7684\u56fe\u5f62\u5316\u754c\u9762\u540e\u624d\u4f1a\u542f\u52a8\u3002<\/mark><\/strong><\/p>\n\n\n\n<p>\u4e0d\u540c\u4f4d\u7f6e\u7684 LaunchAgents \u548c LaunchDaemons \u7684\u5f02\u540c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>~\/Library\/LaunchAgents #\u7528\u6237agents\uff0c\u4ee5\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c<\/li><li>\/Library\/LaunchAgents #\u5168\u5c40agents\uff0c\u4ee5\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c<\/li><li>\/Library\/LaunchDaemons #\u5168\u5c40daemons\uff0c\u4ee5root\u6216\u6307\u5b9a\u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c<\/li><li>\/System\/Library\/LaunchAgents #\u3010\u4e0d\u8981\u81ea\u5df1\u64c5\u81ea\u6539\u52a8\u7684\u3011\u7cfb\u7edfagents\uff0c\u4ee5\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c<\/li><li>\/System\/Library\/LaunchDaemons #\u3010\u4e0d\u8981\u81ea\u5df1\u64c5\u81ea\u6539\u52a8\u7684\u3011\u7cfb\u7edfdaemons\uff0c\u4ee5root\u6216\u6307\u5b9a\u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c<\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">plist\u6587\u4ef6\u7b80\u5355\u8bf4\u660e<\/h5>\n\n\n\n<p>launchd \u662f\u901a\u8fc7\u4ee5\u201c.plist\u201d\u540e\u7f00\u7ed3\u5c3e\u7684xml\u2f42\u4ef6\u6765\u6307\u5b9a\u2f00\u4e2a agent\/daemon \u7684\u884c\u4e3a\uff0c\u6211\u4eec\u2f00\u822c\u79f0\u5b83\u4e3aplist\u2f42\u4ef6\u3002\u6839\u636e plist\u6587\u4ef6 \u5b58\u653e\u4f4d\u7f6e\u7684\u4e0d\u540c\uff0c\u6211\u4eec\u4f1a\u5206\u522b\u5c06\u5b83\u4eec\u89c6\u4e3a agent \u6216 daemon \u3002<\/p>\n\n\n\n<p><strong>\u6bcf\u4e2aplist\u6587\u4ef6\u90fd\u662f\u4e00\u4e2a\u4efb\u52a1\uff0c\u52a0\u8f7d\u4e0d\u4ee3\u8868\u7acb\u5373\u8fd0\u884c\uff0c\u53ea\u6709\u8bbe\u7f6e\u4e86 RunAtLoad \u4e3atrue\u6216 keepAlive \u4e3atrue\u65f6\uff0c\u624d\u4f1a\u52a0\u8f7d\u5e76\u540c\u65f6\u542f\u52a8\u8fd9\u4e9b\u4efb\u52a1\u3002<\/strong><\/p>\n\n\n\n<p>\u4e0b\u9762\u4ee5brew\u63d0\u4f9b\u7684 mysql.plist \u6587\u4ef6\u4e3a\u4f8b\u5b66\u4e60\u4e00\u4e0b\u300c.plist\u6587\u4ef6\u300d\u7684\u7f16\u5199\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat ~\/Library\/LaunchAgents\/homebrew.mxcl.mysql.plist\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt;\n&lt;plist version=\"1.0\"&gt;\n&lt;dict&gt;\n  &lt;key&gt;KeepAlive&lt;\/key&gt; \/\/\u8fd9\u4e2akey\u8868\u660e\u4f60\u7684daemon\u662f\u6309\u9700\u542f\u52a8\u8fd8\u662f\u9700\u8981\u4e00\u76f4\u8fd0\u884c\n  &lt;true\/&gt;\n  &lt;key&gt;Label&lt;\/key&gt; \/\/\u5fc5\u987b\u8981\u6709\u7684key\uff0c\u4e0b\u9762\u7684&lt;string&gt;\u4e3akey\u5bf9\u5e94\u7684\u503c\uff0c\u9700\u8981\u662f\u552f\u4e00\u53ef\u8fa8\u8bc6\u7684\n  &lt;string&gt;homebrew.mxcl.mysql&lt;\/string&gt;\n  &lt;key&gt;ProgramArguments&lt;\/key&gt; \/\/\u5fc5\u987b\u8981\u6709\u7684key\uff0c\u4e0b\u9762\u7684&lt;array&gt;\u4e3a\u547d\u4ee4\u7684\u8def\u5f84\u548c\u542f\u52a8\u6240\u9700\u8981\u7684\u9009\u9879\n  &lt;array&gt;\n    &lt;string&gt;\/usr\/local\/opt\/mysql\/bin\/mysqld_safe&lt;\/string&gt;\n    &lt;string&gt;--bind-address=127.0.0.1&lt;\/string&gt;\n    &lt;string&gt;--datadir=\/usr\/local\/var\/mysql&lt;\/string&gt;\n  &lt;\/array&gt;\n  &lt;key&gt;RunAtLoad&lt;\/key&gt; \/\/\u5728\u88ab\u52a0\u8f7d\u65f6\u8fd0\u884c\n  &lt;true\/&gt;\n  &lt;key&gt;WorkingDirectory&lt;\/key&gt; \/\/\u5b98\u65b9\u6587\u6863\u63a8\u8350\u4f7f\u7528 WorkingDirectory \u8fd9\u4e2akey\u6765\u6307\u5b9a\u5de5\u4f5c\u76ee\u5f55\n  &lt;string&gt;\/usr\/local\/var\/mysql&lt;\/string&gt;\n&lt;\/dict&gt;\n&lt;\/plist&gt;<\/code><\/pre>\n\n\n\n<p>\u6839\u636e\u6587\u6863\u6765\u770b\uff0c\u4e00\u4e2a plist\u6587\u4ef6 \u81f3\u5c11\u6709 3 \u4e2a\u5173\u952e\u7684key\u9700\u8981\u6307\u5b9a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label #\u7406\u8bba\u4e0a\u5728daemon\u6216agent\u8303\u56f4\u5185\u90e8\u9700\u8981\u5206\u522b\u552f\u4e00\u53ef\u8bc6\u522b\uff0c\u4f46\u5efa\u8bae\u5168\u5c40\u552f\u4e00<\/li><li>Program\/ProgramArguments #\u6307\u5b9a\u8981\u8fd0\u884c\u7684\u7a0b\u5e8f\u548c\u542f\u52a8\u6240\u9700\u8981\u7684\u9009\u9879\uff0c\u5efa\u8bae\u76f4\u63a5\u7528 ProgramArguments \u5c31\u884c<\/li><li>RunAtLoad #\u5b83\u51b3\u5b9a\u7a0b\u5e8f\u662f\u5426\u5728plist\u6587\u4ef6\u88ab\u52a0\u8f7d\u65f6\u5c31\u8fd0\u884c<\/li><\/ul>\n\n\n\n<p>\u8fd8\u6709 1 \u4e2a\u5bf9\u4e8e\u9700\u8981\u957f\u671f\u8fd0\u884c\u7684daemon\u6765\u8bf4\u5f88\u5173\u952e\u7684key\u662f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>KeepAlive #\u5b83\u8868\u660e\u4f60\u7684daemon\u662f\u6309\u9700\u542f\u52a8\u8fd8\u662f\u9700\u8981\u4e00\u76f4\u8fd0\u884c\uff0c\u4e3atrue\u5219\u8868\u793a\u4e00\u76f4\u8fd0\u884c<\/li><\/ul>\n\n\n\n<p>\u5176\u5b83\u7684\u5c31\u5f88\u7b80\u5355\u4e86\uff0c\u7167\u7740\u5df2\u6709\u793a\u4f8b\u6539\u6539\u5c31\u80fd\u7528\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u52a0\u8f7d \u548c \u542f\u52a8 plist\u6587\u4ef6 \u7684\u533a\u522b<\/h5>\n\n\n\n<p><strong>\u52a0\u8f7d\u4e00\u4e2aplist\u6587\u4ef6\u5e76\u4e0d\u4e00\u5b9a\u610f\u5473\u7740\u542f\u52a8plist\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u7a0b\u5e8f\u3002\u7a0b\u5e8f\u4f55\u65f6\u542f\u52a8\u7531plist\u6587\u4ef6\u4e2d\u7684\u8bbe\u7f6e\u51b3\u5b9a\u3002\u4e8b\u5b9e\u4e0a\uff0c\u53ea\u6709\u5f53\u6307\u5b9a\u4e86 RunAtLoad \u6216 KeepAlive \u65f6\uff0claunchd\u624d\u4f1a\u5728\u52a0\u8f7dplist\u6587\u4ef6\u540e\u65e0\u6761\u4ef6\u5730\u542f\u52a8\u6307\u5b9a\u7684\u7a0b\u5e8f\u3002<\/strong>(Loading a job definition does not necessarily mean to start the job. When a job is started is determined by the job definition. In fact, only when RunAtLoad or KeepAlive have been specified,launchd will start the job unconditionally when it has been loaded.)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">launchctl \u7684\u4f7f\u7528<\/h5>\n\n\n\n<p>\u5217\u51fa\u6240\u6709\u7531launchd\u7ba1\u7406\u7684\u8fdb\u7a0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>launchctl list\nlaunchctl list | grep 'keyword'<\/code><\/pre>\n\n\n\n<p>\u624b\u52a8\u52a0\u8f7d\u67d0\u4e2a .plist \u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>launchctl load ~\/Library\/LaunchAgents\/homebrew.mxcl.mysql.plist\n# -w\u9009\u9879\u7684\u4f5c\u7528\u662f\uff0c\u5982\u679c\u8be5\u670d\u52a1\u88ab\u7981\u7528\u4e86\uff0c\u5219\u4f1a\u5728\u52a0\u8f7d\u7684\u540c\u65f6\u8bbe\u7f6e\u4e3a\u542f\u7528\nlaunchctl load -w ~\/Library\/LaunchAgents\/homebrew.mxcl.mysql.plist<\/code><\/pre>\n\n\n\n<p>\u52a0\u8f7d\/\u5378\u8f7d\/\u542f\u52a8\/\u505c\u6b62\/\u79fb\u9664\/\u542f\u7528\/\u505c\u7528\/\u2026\u2026<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>launchctl load|unload|start|stop|remove|enable|disable|... \/path\/to\/name.plist<\/code><\/pre>\n\n\n\n<p>\u68c0\u67e5\u67d0\u4e2a .plist \u6587\u4ef6\u7684\u8bed\u6cd5\/\u683c\u5f0f\u662f\u5426\u6b63\u786e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>plutil -lint ~\/Library\/LaunchAgents\/homebrew.mxcl.mysql.plist<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># launchctl help\n# launchctl load --help\n\n\nUsage: launchctl &lt;subcommand&gt; ... | help &#91;subcommand]\nMany subcommands take a target specifier that refers to a domain or service\nwithin that domain. The available specifier forms are:\n\nsystem\/&#91;service-name]\nTargets the system-wide domain or service within. Root privileges are required\nto make modifications.\n\nuser\/&lt;uid&gt;\/&#91;service-name]\nTargets the user domain or service within. A process running as the target user\nmay make modifications. Root may modify any user's domain. User domains do not\nexist on iOS.\n\ngui\/&lt;uid&gt;\/&#91;service-name]\nTargets the GUI domain or service within. Each GUI domain is associated with a\nuser domain, and a process running as the owner of that user domain may make\nmodifications. Root may modify any GUI domain. GUI domains do not exist on iOS.\n\nsession\/&lt;asid&gt;\/&#91;service-name]\nTargets a session domain or service within. A process running within the target\nsecurity audit session may make modifications. Root may modify any session\ndomain.\n\npid\/&lt;pid&gt;\/&#91;service-name]\nTargets a process domain or service within. Only the process which owns the\ndomain may modify it. Even root may not do so.\n\nWhen using a legacy subcommand which manipulates a domain, the target domain is\ninferred from the current execution context. When run as root (whether it is\nvia a root shell or sudo(1)), the target domain is assumed to be the\nsystem-wide domain. When run from a normal user's shell, the target is assumed\nto be the per-user domain for that current user.\n\nSubcommands:\n...    \n    enable          Enables an existing service.\n    disable         Disables an existing service.\n    kickstart       Forces an existing service to start.\n...    \n    kill            Sends a signal to the service instance.\n...    \n    runstats        Prints performance statistics for a service.\n...    \n    load            Recommended alternatives: bootstrap | enable. Bootstraps a service or directory of services.\n    unload          Recommended alternatives: bootout | disable. Unloads a service or directory of services.\n    remove          Unloads the specified service name.\n    list            Lists information about services.\n    start           Starts the specified service.\n    stop            Stops the specified service if it is running.\n...    <\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Mac\u4e0a\u6709\u4e9b\u8f6f\u4ef6\u65e0\u6cd5\u7981\u6b62\u5f00\u673a\u542f\u52a8\u600e\u4e48\u529e\uff1f<br><a href=\"https:\/\/www.zhihu.com\/question\/28268529\">https:\/\/www.zhihu.com\/question\/28268529<\/a><\/p>\n\n\n\n<p>MacOS:Launchd&amp;LaunchDaemon&amp;LaunchAgent&amp;.plist\u6587\u4ef6\u7f16\u5199<br><a href=\"https:\/\/blog.csdn.net\/dddgggd\/article\/details\/122599616\">https:\/\/blog.csdn.net\/dddgggd\/article\/details\/122599616<\/a><\/p>\n\n\n\n<p>What is launchd?<br><a href=\"https:\/\/launchd.info\/\">https:\/\/launchd.info\/<\/a><\/p>\n\n\n\n<p>Mac\u670d\u52a1\u7ba1\u7406 \u2013 launchd\u3001launchctl\u3001LaunchAgent\u3001LaunchDaemon\u3001brew services\u8be6\u89e3<br><a href=\"https:\/\/www.xiebruce.top\/983.html\">https:\/\/www.xiebruce.top\/983.html<\/a><\/p>\n\n\n\n<p>\u4e86\u89e3LaunchDaemons<br><a href=\"https:\/\/afoo.me\/posts\/2014-12-12-understanding-launch-daemons-of-macosx.html\">https:\/\/afoo.me\/posts\/2014-12-12-understanding-launch-daemons-of-macosx.html<\/a><\/p>\n\n\n\n<p>\u3010\u77e5\u8bc6\u3011\u7ba1\u7406 macOS \u7684\u542f\u52a8\u9879<br><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/118129638\">https:\/\/zhuanlan.zhihu.com\/p\/118129638<\/a><\/p>\n\n\n\n<p>macOS\u5f00\u673a\u542f\u52a8\u9879\u8bbe\u7f6e<br><a href=\"https:\/\/blog.csdn.net\/qq_27198345\/article\/details\/108544720\">https:\/\/blog.csdn.net\/qq_27198345\/article\/details\/108544720<\/a><\/p>\n\n\n\n<p>\u82f9\u679c\u5168\u65b0\u7248\u672cmacOS Ventura\u64cd\u4f5c\u7cfb\u7edf macOS Ventura\u65b0\u529f\u80fd<br><a href=\"https:\/\/baijiahao.baidu.com\/s?id=1735773440804215272&amp;wfr=spider&amp;for=pc\">https:\/\/baijiahao.baidu.com\/s?id=1735773440804215272&amp;wfr=spider&amp;for=pc<\/a><\/p>\n\n\n\n<p>What are the differences between LaunchAgents and LaunchDaemons?<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/290945\/what-are-the-differences-between-launchagents-and-launchdaemons\">https:\/\/apple.stackexchange.com\/questions\/290945\/what-are-the-differences-between-launchagents-and-launchdaemons<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/ss64.com\/osx\/launchctl.html\">https:\/\/ss64.com\/osx\/launchctl.html<\/a><\/p>\n\n\n\n<p>macOS: Know the difference between launch agents and daemons, and use them to automate processes<br><a href=\"https:\/\/www.techrepublic.com\/article\/macos-know-the-difference-between-launch-agents-and-daemons-and-use-them-to-automate-processes\/\">https:\/\/www.techrepublic.com\/article\/macos-know-the-difference-between-launch-agents-and-daemons-and-use-them-to-automate-processes\/<\/a><\/p>\n\n\n\n<p>How to Catch and Remove Hidden LaunchDaemons and LaunchAgents on Mac<br><a href=\"https:\/\/www.makeuseof.com\/tag\/hidden-launchdaemons-launchagents-mac\/\">https:\/\/www.makeuseof.com\/tag\/hidden-launchdaemons-launchagents-mac\/<\/a><\/p>\n\n\n\n<p>Creating Launch Daemons and Agents<br><a href=\"https:\/\/developer.apple.com\/library\/archive\/documentation\/MacOSX\/Conceptual\/BPSystemStartup\/Chapters\/CreatingLaunchdJobs.html\">https:\/\/developer.apple.com\/library\/archive\/documentation\/MacOSX\/Conceptual\/BPSystemStartup\/Chapters\/CreatingLaunchdJobs.html<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7b80\u5355\u6574\u7406\u4e00\u4e0bmacOS\u7cfb\u7edf\u5f00\u673a\u542f\u52a8\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u65b9\u4fbf\u4ee5\u540e\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002 \u6b63\u6587\uff1a \u53c2\u8003 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,560,12],"tags":[1859,684,1857,1858,1780,1860],"class_list":["post-5335","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-mac","category-tools","tag-launchagents","tag-launchctl","tag-launchd","tag-launchdaemons","tag-macos","tag-1860"],"views":4977,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5335"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5335\/revisions"}],"predecessor-version":[{"id":5336,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5335\/revisions\/5336"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}