locate command not found

linux locate: command not found

Posted on 2014-02-11 11:12 牧羊岛 阅读( 943) 评论( 0) 编辑 收藏

装好系统发现使用locate查找文件,提示 html

-bash: locate: command not found mysql

yum install locate 无效,看来locate不是软件名称 linux

[root@centos64 ~]# yum search locate  sql

============================= N/S Matched: locate ==============================
mlocate.x86_64 : An utility for finding files by name
which.x86_64 : Displays where a particular program in your path is located centos

[root@centos64 ~]# yum install mlocate bash

[root@centos64 ~]# locate mysql
locate: can not stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录 post

[root@centos64 ~]# updatedb spa

完成。 htm

相关文章
相关标签/搜索