了解我的 install.log 文件
我刚刚第一次破解了我的 install.log 文件,我需要一些帮助来理解该文件的结构。我需要理解的是括号内数字的意义。
示例:
Jun 5 08:16:13 My-MacBook-Pro Installer[2605]
看来每个数字都适用于特定的安装。这是真的吗?以及这个数字是如何产生的?
另一个对我有帮助的问题......你会如何标记这个问题?
感谢您对新手的帮助!
I've just cracked my install.log file(s) for the first time and I could use some help understanding the anatomy of the file. The thing I need to understand is the significance of the bracketed number.
Example:
Jun 5 08:16:13 My-MacBook-Pro Installer[2605]
It appears that each number applies to a specific install. Is this true? And how is the number generated?
Another question that would help me... How would you have tagged this question?
Thanks for helping out a newbie!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是安装程序的进程 ID 号 (pid)。
$ ps auxww | grep -i 安装
用户 82649 0.0 0.3 1047576 12176 ?? S 3:19PM 0:00.27 /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer -psn_0_7882628
来自 /var/log/install.log
5 月 7 日 15:20:30 My-MacBook-Pro 安装程序[82649] :用户选择标准安装
That's the process id number (pid) of the installer.
$ ps auxww | grep -i install
user 82649 0.0 0.3 1047576 12176 ?? S 3:19PM 0:00.27 /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer -psn_0_7882628
From /var/log/install.log
May 7 15:20:30 My-MacBook-Pro Installer[82649]: User picked Standard Install
您想要(并且需要!)了解的一件事。 Mac 上的安装很复杂,并且存在一些严重的安全问题,安装程序可以替换任何文件,包括部分操作系统 - 或整个操作系统,因此 - 它也是最危险的工具。为了使其更安全 - Apple 将大部分功能拆分为“安装程序框架”,该框架具有特殊权限和证书,并且不运行实际安装程序过程的一部分。安装程序进程(您可以在括号中的数字中找到其 pid)仅“管理”流程、UI、安装的初步检查等。实际安装是在其他地方完成的。
我相信有一位知识渊博的法国人编写了 Packages 应用程序取代 Apple 已故的 Installer-Maker 并构建安装程序包。他可能是就此事咨询的最佳人选。在lists.apple.com 上还有一个针对安装程序开发人员的Apple 邮件列表,您可能也想参加。
One thing you want (and need!) to understand. Installation on Mac is complicated, and has some serious security concerns, Installer can replace any file, including parts of the OS - or the whole OS, and so - it is also the most dangerous tool. To make it safer - Apple has split much of the capabilities into an "Installer Framework" that has special permissions and certificates, and that DOES NOT RUN part of the actual Installer process. The installer process (whose pid you find in the bracketed number) only "manages" the flow, UI, preliminary checks for the installation and so on. Actual installation is done elsewhere.
I believe there's a very knowledgable French guy who wrote the Packages app which replaces Apple's deceased Installer-Maker and builds installer packages. He may be the best guy to consult on the matter. There is also an Apple mailing-list for installer developers in lists.apple.com which you may want to attend too.