想在Mac下使用locate时,提醒数据库没创建:
WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command:sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plistPlease be aware that the database can take some time to generate; once the database has been created, this message will no longer appear.
根据提示使用
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
并没有生效。
需要执行
sudo /usr/libexec/locate.updatedb 进行库更新。
转载于:.html
本文发布于:2024-02-01 00:31:54,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170671871632518.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |