gpt4 book ai didi

linux - 在 mac osx 中启动脚本?

转载 作者:太空宇宙 更新时间:2023-11-04 11:24:47 24 4
gpt4 key购买 nike

是否有在 mac osx 上启动时运行的等效脚本(/etc/rc.d 等)?

比如我们可以在 linux 中找到:

https://stackoverflow.com/questions/3036/files-and-scripts-that-execute-on-boot

最佳答案

这通常由 launchd 处理。具体如何操作(LaunchAgent 与 LaunchDaemon)取决于您希望它作为系统进程还是用户进程运行。参见 Daemons and Services Programming Guide了解详情。

关于linux - 在 mac osx 中启动脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15440327/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com