{"id":5387,"date":"2023-03-10T23:04:05","date_gmt":"2023-03-10T15:04:05","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5387"},"modified":"2023-03-10T23:04:05","modified_gmt":"2023-03-10T15:04:05","slug":"macos%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e5%b7%b2%e7%a6%81%e7%94%a8%e7%9a%84%e5%bc%80%e6%9c%ba%e8%87%aa%e5%90%af%e5%8a%a8%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5387.html","title":{"rendered":"macOS\u5982\u4f55\u67e5\u770b\u5df2\u7981\u7528\u7684\u5f00\u673a\u81ea\u542f\u52a8\u9879\u76ee"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u4ece\u5b89\u5168\u89d2\u5ea6\u6765\u770b\uff0c\u4e00\u4e2a\u65b0\u7279\u6027\u662f\u7528\u6237\u73b0\u5728\u53ef\u4ee5\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u7684\u4e00\u4e2a\u4f4d\u7f6e\u7ba1\u7406\u767b\u5f55\u9879\u3001\u542f\u52a8\u4ee3\u7406\u548c\u542f\u52a8\u5b88\u62a4\u8fdb\u7a0b\u3002\u4ee5\u524d\uff0c\u53ea\u6709\u5728\u8bbe\u5907\u542f\u52a8\u6216\u7528\u6237\u767b\u5f55\u65f6\u624d\u80fd\u770b\u5230\u6267\u884c\u7684\u9879\u76ee\uff0c\u9700\u8981\u4f7f\u7528\u7ec8\u7aef\u6216\u4f9d\u8d56\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u5728 Finder \u4e2d\u67e5\u627e\u9690\u85cf\u7684\u76ee\u5f55\u3002<strong>\u8fd9\u4e00\u76f4\u662f\u6709\u95ee\u9898\u7684\uff0c\u7279\u522b\u662f\u5bf9\u4e8e LaunchAgents\uff0c\u56e0\u4e3a\u4efb\u4f55\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u6301\u4e45\u5316\u9879\uff0c\u800c\u4e0d\u9700\u8981\u7528\u6237\u7684\u6388\u6743\u6216\u901a\u77e5\u3002<\/strong><\/p>\n\n\n\n<p>\u73b0\u5728\u5728 macOS Ventura \u4e2d\uff0c\u7528\u6237\u4e0d\u4ec5\u53ef\u4ee5\u770b\u5230\u54ea\u4e9b\u6761\u76ee\u88ab\u8bbe\u7f6e\u4e3a\u6301\u4e45\u5316\uff0c\u4ed6\u4eec\u8fd8\u53ef\u4ee5\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u5355\u72ec\u63a7\u5236\u5b83\u4eec\u3002\u91cd\u8981\u7684\u662f\uff0c\u5f53\u5e94\u7528\u7a0b\u5e8f\u6dfb\u52a0\u4e86\u4e00\u4e2a LaunchAgent, LaunchDaemon \u6216 Login Item\uff0c\u7cfb\u7edf\u73b0\u5728\u4f1a\u4ea7\u751f\u4e00\u4e2a\u901a\u77e5\u8b66\u62a5\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e LaunchAgents \u662f macOS \u6076\u610f\u8f6f\u4ef6\u4e2d\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u6301\u4e45\u6027\u624b\u6bb5\uff0c\u8fd9\u53ea\u80fd\u662f\u4e00\u4ef6\u597d\u4e8b\u3002<strong>\u4ece\u5b89\u5168\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u5bf9\u8fd9\u4e2a\u8fc7\u7a0b\u7684\u989d\u5916\u53ef\u89c1\u6027\u548c\u63a7\u5236\u5f53\u7136\u662f\u4e00\u4ef6\u597d\u4e8b\uff0c\u8fd9\u662f\u6211\u4eec\u6b22\u8fce\u7684\u5bf9 macOS \u5b89\u5168\u6027\u7684\u4e00\u4e2a\u65e9\u5c31\u5e94\u8be5\u7684\u91cd\u8981\u6539\u8fdb\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u7136\u800c\uff0c\u4f01\u4e1a\u56e2\u961f\u9700\u8981\u6ce8\u610f\u3002\u8fd9\u79cd\u9632\u6b62\u6076\u610f\u8f6f\u4ef6\u548c\u8bef\u7528\u7684\u989d\u5916\u5b89\u5168\u6027\u4e5f\u4f1a\u5f71\u54cd\u5230\u7edd\u5927\u591a\u6570\u5408\u6cd5\u4f7f\u7528\u8fd9\u4e9b\u9879\u76ee\u7684\u8f6f\u4ef6\u3002<\/strong>\u9996\u5148\uff0c\u6709\u989d\u5916\u7684\u8b66\u62a5\u9700\u8981\u5904\u7406\u548c\u89e3\u9664\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5982\u4e0a\u9762\u7684\u793a\u4f8b\uff0c\u4e00\u4e2a\u5b89\u88c5\u53ef\u80fd\u4f1a\u4ea7\u751f\u591a\u4e2a\u8b66\u62a5\u3002\u5176\u6b21\uff0c\u4e5f\u8bb8\u66f4\u4ee4\u4eba\u62c5\u5fe7\u7684\u662f\uff0c\u7528\u6237\u53ef\u80fd\u4e0d\u7406\u89e3\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u7981\u7528\u8fd9\u4e9b\u6761\u76ee\u7684\u5f71\u54cd\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u7684\u7ec4\u7ec7\u4f7f\u7528\u5177\u6709\u6b64\u7c7b\u6301\u4e45\u6027\u673a\u5236\u7684\u57fa\u672c\u8f6f\u4ef6\uff0c\u4f60\u5c06\u9700\u8981\u5f04\u6e05\u695a\u5982\u679c\u7528\u6237\u7981\u7528\u8fd9\u4e9b\u529f\u80fd\uff0c\u4f60\u53ef\u80fd\u4f1a\u6536\u5230\u4ec0\u4e48\u6837\u7684\u652f\u6301\u8c03\u7528\u3002\u76ee\u524d\uff0c\u5c1a\u4e0d\u6e05\u695a Ventura \u7684\u6700\u7ec8\u7248\u672c\u662f\u5426\u4f1a\u5305\u62ec\u901a\u8fc7 MDM \u6216\u5176\u4ed6\u673a\u5236\u9501\u5b9a\u8fd9\u4e9b\u6761\u76ee\u7684\u80fd\u529b\uff0c\u4ee5\u9632\u6b62\u7528\u6237\u7981\u7528\u5173\u952e\u8f6f\u4ef6\u3002<\/p>\n<\/blockquote>\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<p>\u5728\u5f53\u524dmacOS\u6700\u65b0\u7684\u7cfb\u7edf Ventura 13.2.1 \u4e0a\uff0c\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u767b\u5f55\u9879\u7ba1\u7406\u529f\u80fd\uff08\u800c\u4e14\u975e\u5e38\u5168\u9762\u6709\u6548\uff0c<strong>\u4e0d\u50cf\u4ee5\u524d\u7684macOS\u7cfb\u7edf\uff0c\u4e2a\u4eba\u5f88\u96be\u627e\u5168\u5e76\u7981\u7528<\/strong>\uff0c\u6709\u65f6\u53ea\u80fd\u901a\u8fc7\u66b4\u529b\u7684\u6740\u8fdb\u7a0b\u5220\u9664\u76ee\u5f55\u6765\u5b9e\u73b0\uff0c\u4f46\u8fd9\u4e48\u505a\u4e00\u65b9\u9762\u662f\u52a8\u9759\u592a\u5927\uff0c\u53e6\u4e00\u65b9\u9762\u662f\u4e5f\u4e0d\u4e00\u5b9a\u80fd\u5904\u7406\u5e72\u51c0\uff0c\u73b0\u5728\u597d\u4e86\uff0c\u628a\u53ef\u89c1\u6027\u548c\u4e3b\u52a8\u6027\u90fd\u4ea4\u7ed9\u4e86\u7528\u6237\uff0c\u5bf9\u8fd9\u65b9\u9762\u6709\u9700\u6c42\u7684\u7528\u6237\u5e94\u8be5\u8fd8\u662f\u633a\u9ad8\u5174\u7684\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u7cfb\u7edf\u8bbe\u7f6e-\u901a\u7528-\u767b\u5f55\u9879\n* \u767b\u5f55\u65f6\u6253\u5f00\n* \u5141\u8bb8\u5728\u540e\u53f0<\/code><\/pre>\n\n\n\n<p><strong>\u5982\u4f55\u67e5\u770b\u5df2\u7981\u7528\u7684\u5f00\u673a\u81ea\u542f\u52a8\u9879\u76ee\uff1f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>launchctl print-disabled system\n\ncat \/var\/db\/com.apple.xpc.launchd\/disabled.plist<\/code><\/pre>\n\n\n\n<p>\u8865\u5145\u4e00\u4e9b launchctl \u547d\u4ee4\u7684\u6837\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>launchctl print system\nlaunchctl print user\/$(id -u)\nlaunchctl print user\/0\nlaunchctl print gui\/$(id -u)\n\nlaunchctl print-disabled system\nlaunchctl print-disabled user\/0\nlaunchctl print-disabled user\/$(id -u)\nlaunchctl print-disabled gui\/$(id -u)\n\n==\n$ man launchctl\n...\n\n     ~\/Library\/LaunchAgents         Per-user agents provided by the user.\n     \/Library\/LaunchAgents          Per-user agents provided by the administrator.\n     \/Library\/LaunchDaemons         System wide daemons provided by the administrator.\n     \/System\/Library\/LaunchAgents   OS X Per-user agents.\n     \/System\/Library\/LaunchDaemons  OS X System wide daemons.\n\n\nSYNOPSIS\n     launchctl subcommand &#91;arguments ...]\n\nDESCRIPTION\n     launchctl interfaces with launchd to manage and inspect daemons, agents and XPC services.\n\nSUBCOMMANDS\n     launchctl allows for detailed examination of launchd's data structures. The fundamental structures are domains, services, and endpoints. A domain manages the execution policy for a collection of services.  A service may be thought of as a virtual process that is always available to be spawned in response to demand. Each service has\n     a collection of endpoints, and sending a message to one of those endpoints will cause the service to launch on demand. Domains advertise these endpoints in a shared namespace and may be thought of as synonymous with Mach bootstrap subsets.\n\n     Many subcommands in launchctl take a specifier which indicates the target domain or service for the subcommand. This specifier may take one of the following forms:\n\n     system\/&#91;service-name]\n              Targets the system domain or a service within the system domain. The system domain manages the root Mach bootstrap and is considered a privileged execution context. Anyone may read or query the system domain, but root privileges are required to make modifications.\n\n     user\/&lt;uid&gt;\/&#91;service-name]\n              Targets the user domain for the given UID or a service within that domain. A user domain may exist independently of a logged-in user. User domains do not exist on iOS.\n\n     login\/&lt;asid&gt;\/&#91;service-name]\n              Targets a user-login domain or service within that domain. A user-login domain is created when the user logs in at the GUI and is identified by the audit session identifier associated with that login. If a user domain has an associated login domain, the print subcommand will display the ASID of that login domain. User-\n              login domains do not exist on iOS.\n\n     gui\/&lt;uid&gt;\/&#91;service-name]\n              Another form of the login specifier. Rather than specifying a user-login domain by its ASID, this specifier targets the domain based on which user it is associated with and is generally more convenient.\n\n              Note: GUI domains and user domains share many resources. For the purposes of the Mach bootstrap name lookups, they are \"flat\", so they share the same set of registered names. But they still have discrete sets of services. So when printing the user domain's contents, you may see many Mach bootstrap name registrations from\n              services that exist in the GUI domain for that user, but you will not see the services themselves in that list.\n\n     pid\/&lt;pid&gt;\/&#91;service-name]\n              Targets the domain for the given PID or a service within that domain. Each process on the system will have a PID domain associated with it that consists of the XPC services visible to that process which can be reached with xpc_connection_create(3).\n\n     For instance, when referring to a service with the identifier com.apple.example loaded into the GUI domain of a user with UID 501, domain-target is gui\/501\/, service-name is com.apple.example, and service-target is gui\/501\/com.apple.example.<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>\u5728 macOS Ventura 13.x \u6216\u66f4\u9ad8\u7248\u672c\u4e0a\uff0c\u5728\u201c\u767b\u5f55\u9879\u201d\u4e2d\u542f\u7528 Norton (<strong>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5728\u201c\u767b\u5f55\u9879\u201d\u4e2d\u7981\u7528\u548c\u542f\u7528 Norton \u540e\uff0c\u53ef\u80fd\u4f1a\u9047\u5230 Norton \u4ea7\u54c1\u626b\u63cf\u548c Norton \u4ea7\u54c1\u901a\u77e5\u95ee\u9898\u3002<\/strong>\u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u8bf7\u9000\u51fa\u6240\u6709\u6253\u5f00\u7684\u5e94\u7528\u7a0b\u5e8f\u5e76\u91cd\u65b0\u542f\u52a8 Mac\u3002)<br><a href=\"https:\/\/support.norton.com\/sp\/zh\/cn\/home\/current\/solutions\/v20220916232603380\">https:\/\/support.norton.com\/sp\/zh\/cn\/home\/current\/solutions\/v20220916232603380<\/a><\/p>\n\n\n\n<p>\u4fee\u590d Adobe Creative Cloud \u7684\u767b\u5f55\u9879\u95ee\u9898 | macOS Ventura<br><a href=\"https:\/\/helpx.adobe.com\/cn\/download-install\/kb\/background-processes-macos.html\">https:\/\/helpx.adobe.com\/cn\/download-install\/kb\/background-processes-macos.html<\/a><\/p>\n\n\n\n<p>\u5728 Mac \u4e0a\u79fb\u9664\u767b\u5f55\u9879\u4ee5\u89e3\u51b3\u542f\u52a8\u95ee\u9898<br><a href=\"https:\/\/support.apple.com\/zh-cn\/guide\/mac-help\/mh21210\/mac\">https:\/\/support.apple.com\/zh-cn\/guide\/mac-help\/mh21210\/mac<\/a><\/p>\n\n\n\n<p>\u5141\u8bb8 Microsoft AutoUpdate \u5728\u540e\u53f0\u8fd0\u884c<br><a href=\"https:\/\/support.microsoft.com\/zh-cn\/office\/%E5%85%81%E8%AE%B8-microsoft-autoupdate-%E5%9C%A8%E5%90%8E%E5%8F%B0%E8%BF%90%E8%A1%8C-93b5dd2a-2395-4780-80b6-00811b774f06\">https:\/\/support.microsoft.com\/zh-cn\/office\/%E5%85%81%E8%AE%B8-microsoft-autoupdate-%E5%9C%A8%E5%90%8E%E5%8F%B0%E8%BF%90%E8%A1%8C-93b5dd2a-2395-4780-80b6-00811b774f06<\/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:\/\/zhuanlan.zhihu.com\/p\/530265533\">https:\/\/zhuanlan.zhihu.com\/p\/530265533<\/a><\/p>\n\n\n\n<p>How does one check whether the OS X &#8220;disabled&#8221; flag for launchd services is set?<br><a href=\"https:\/\/serverfault.com\/questions\/218402\/how-does-one-check-whether-the-os-x-disabled-flag-for-launchd-services-is-set\">https:\/\/serverfault.com\/questions\/218402\/how-does-one-check-whether-the-os-x-disabled-flag-for-launchd-services-is-set<\/a><\/p>\n\n\n\n<p>launchctl &#8211; interface to launchd &#8211; Mac OS&#8217;s master task invoker<br><a href=\"https:\/\/www.real-world-systems.com\/docs\/launchctl.1.html\">https:\/\/www.real-world-systems.com\/docs\/launchctl.1.html<\/a><br><a href=\"https:\/\/ss64.com\/osx\/launchctl.html\">https:\/\/ss64.com\/osx\/launchctl.html<\/a><\/p>\n\n\n\n<p>How to completely remove a service from launchd added by mistake?<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/374495\/how-to-completely-remove-a-service-from-launchd-added-by-mistake\">https:\/\/apple.stackexchange.com\/questions\/374495\/how-to-completely-remove-a-service-from-launchd-added-by-mistake<\/a><\/p>\n\n\n\n<p>macos_security\/rules\/os\/os_httpd_disable.yaml<br><a href=\"https:\/\/github.com\/usnistgov\/macos_security\/blob\/main\/rules\/os\/os_httpd_disable.yaml\">https:\/\/github.com\/usnistgov\/macos_security\/blob\/main\/rules\/os\/os_httpd_disable.yaml<\/a><\/p>\n\n\n\n<p>macOS\u7cfb\u7edf\u7684\u542f\u52a8\u9879<br><a href=\"https:\/\/ixyzero.com\/blog\/archives\/5335.html\">https:\/\/ixyzero.com\/blog\/archives\/5335.html<\/a><\/p>\n\n\n\n<p>macOS Ventura Bug Spits Out Perpetual &#8216;Background Items Added&#8217; Notifications at Login, Here&#8217;s a Potential Fix<br><a href=\"https:\/\/www.macrumors.com\/2023\/02\/02\/macos-background-items-added-notification-bug\/\">https:\/\/www.macrumors.com\/2023\/02\/02\/macos-background-items-added-notification-bug\/<\/a><\/p>\n\n\n\n<p>Perpetual &#8220;Background Items Added&#8221;<br><a href=\"https:\/\/discussions.apple.com\/thread\/254341579\">https:\/\/discussions.apple.com\/thread\/254341579<\/a><\/p>\n\n\n\n<p>How to Stop Background Items Added notifications in macOS Ventura?<br><a href=\"https:\/\/www.fireebok.com\/resource\/how-to-stop-background-items-added-notifications-in-macos-ventura.html\">https:\/\/www.fireebok.com\/resource\/how-to-stop-background-items-added-notifications-in-macos-ventura.html<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u4ece\u5b89\u5168\u89d2\u5ea6\u6765\u770b\uff0c\u4e00\u4e2a\u65b0\u7279\u6027\u662f\u7528\u6237\u73b0\u5728\u53ef\u4ee5\u5728\u7cfb\u7edf\u8bbe\u7f6e\u4e2d\u7684\u4e00\u4e2a\u4f4d\u7f6e\u7ba1\u7406\u767b\u5f55\u9879\u3001\u542f\u52a8\u4ee3\u7406\u548c\u542f [&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,25],"tags":[684,1857,1780,1895,1896],"class_list":["post-5387","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-mac","category-security","tag-launchctl","tag-launchd","tag-macos","tag-ventura","tag-1896"],"views":2978,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5387","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=5387"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5387\/revisions"}],"predecessor-version":[{"id":5388,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5387\/revisions\/5388"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}