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

相關文章
相關標籤/搜索