centos7 使用updatedb和locate命令

centos7默认是没有安装mlocate的,所以无法使用这两个命令

yum install mlocate

就可以了

参考:https://fedorahosted.org/mlocate/

原文地址:https://www.cnblogs.com/yangxunwu1992/p/5957950.html