什么是opendirectoryed,为什么它可以在Mac上运行?

You’re checking Activity Monitor, seeing what’s taking up resources on your Mac, when you notice a process called opendirectoryd. What does that even mean?

当您注意到一个名为opendirectoryd的进程时,您正在检查Activity Monitor ,查看Mac上正在占用的资源。 那有什么意思?

This article is part of our ongoing series explaining various processes found in Activity Monitor, like kernel_task, hidd, mdsworker, installd, WindowServer, blued, launchd, backup, and many others. Don’t know what those services are? Better start reading!

这篇文章是一部分我们正在进行一系列解释各种进程在活动监视器中发现,像kernel_taskhiddmdsworkerINSTALLDWindowServer发蓝launchd会备份,和其他许多人。 不知道这些服务是什么? 最好开始阅读!

This particular process, opendirectoryd, is a key part of macOS. It is a daemon, which means it runs in the background performing system tasks, and it’s the main process of Open Directory, the directory service used by macOS. A directory service handles most everything related to local networking, including users and shared folders. To quote the opendirectoryd man page:

这个特定的过程,在opendirectory下,是macOS的关键部分。 它是一个守护程序,这意味着它在后台运行以执行系统任务,并且是Open Directory (macOS使用的目录服务)的主要过程。 目录服务处理与本地网络相关的大多数事务,包括用户和共享文件夹。 引用opendirectoryd手册页

Open Directory forms the foundation of how Mac OS X accesses all authoritative configuration information (users, groups, mounts, managed desktop data, etc.).

Open Directory构成了Mac OS X如何访问所有权威配置信息(用户,组,装载,托管桌面数据等)的基础。

The process is particularly important in macOS environments connected to a server, but also serves an important purpose for home users who do things like share files over the network or connect to Wi-Fi enabled printers.

该过程在连接到服务器的macOS环境中尤其重要,但对于执行诸如通过网络共享文件或连接到支持Wi-Fi的打印机之类的家庭用户而言,此过程也非常重要。

如何配置开放目录 (How to Configure Open Directory)

The man page goes on to say that configuring opendirectoryd mainly happens through the “Users & Groups” section of System Preferences.

该手册页继续说,配置opendirectoryed主要是通过“系统偏好设置”的“用户和组”部分进行的。

We’ve explained how to set up multiple user accounts in the past, including network-only accounts. You didn’t know it, but you were configuring Open Directory when you did that.

我们已经解释了过去如何设置多个用户帐户,包括仅网络帐户。 您不知道它,但是您在配置Open Directory时就这么做了。

And you can dig in deeper, if you’re curious. For more granular control over opendirectoryd you should open the Directory Utility, which you can find from this window. First, click the Login Options button in the left hand panel, then click the “Join” button.

如果您感到好奇,则可以深入研究。 要对opendirectoryed进行更精细的控制,应打开“目录实用程序”,您可以在此窗口中找到它。 首先,单击左侧面板中的“登录选项”按钮,然后单击“加入”按钮。

You’ll find a button for the Directory Utility; click it.

您将找到目录实用程序的按钮; 点击它。

Now you’ve opened the Directory Utility, which will give you a comprehensive look at what opendirectoryd is doing for you.

现在,您已经打开了目录实用程序,它将使您全面了解opendirectoryed为您提供的服务。

Don’t change anything unless you really, really know what you’re doing, because this is not exactly user friendly. But digging through here should give you a pretty good idea of what it is opendirectoryd does.

除非您真的非常了解自己在做什么,否则请不要进行任何更改,因为这并非完全用户友好。 但是在这里进行深入研究应该可以使您对opendirectoryed的功能有一个很好的了解。

如果opendirectoryed正在消耗系统资源 (If opendirectoryd Is Using Up System Resources)

It’s relatively rare for opendirectoryd to take up much in the way of system resources, and it tends to mainly happen in managed environments. If you work in an office with a central server, let IT staff know if opendirectoryd is taking up system resources: there might be some issues with your network.

opendirectory占用系统资源的方式相对很少,而且通常主要发生在托管环境中。 如果您在带有中央服务器的办公室中工作,请让IT人员知道opendirectoryed是否正在占用系统资源:您的网络可能存在一些问题。

If you’re just a home user experiencing these sorts of problems, restarting your Mac will solve any spike in opendirectoryd’s resource usage most of the time. If problems persist you’ll have to do some digging, because there are all sorts of reasons this might be happening. Etrecheck runs dozens of diagnostics at once; run that and see if any networking related issues come up. If you don’t find anything consider heading to the Apple Store.

如果您只是遇到此类问题的家庭用户,那么重新启动Mac可以在大多数情况下解决opendirectoryd资源使用方面的任何高峰。 如果问题仍然存在,则必须进行一些挖掘,因为有各种原因可能会发生这种情况。 Etrecheck一次运行数十个诊断程序; 运行它,看看是否有任何与网络相关的问题。 如果找不到任何内容,请考虑前往Apple Store。

Photo Credit: Helloquence

图片来源: Helloquence

翻译自: https://www.howtogeek.com/321324/what-is-opendirectoryd-and-why-is-it-running-on-my-mac/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值