Linux -bash: locate: command not found

Linux locate About 208 words

错误原因

未安装locate

安装 mlocate

yum  -y install mlocate

其他错误

在首次执行locate xxx时报以下错误

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

解决办法:执行updatedb命令,更新locate维护的数据库。(有点耗时)

updatedb
Views: 1,595 · Posted: 2021-03-08

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh