安装好CentOS后,第一次进入系统使用locate命令,结果出现:locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directoryblog
解决办法运行updatedb命令便可,以下图所示:date