locate: command not found错误,暗示locate找不到,也就是没有安装mlocate这个包,具体细节在本篇经验具体介绍
输入locate 1.log号令,成果返回-bash: locate: command not found
需要安装mlocate包,利用yum -y install mlocate号令安装mlocate包
安装完当作
再次测验考试,输入locate 1.log,仍是报错,错误内容为
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
原因是安装完后没有更新库,需要利用updatedb号令来更新库
再次利用locate号令就可以查找了
0 篇文章
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!