-bash: locate: command not found
其原因是没有安装mlocate这个包
安装:yum -y install mlocate
安装完再尝试用locate定位内容,发现依然不好使,报了新的错误:
原因是安装完后没有更新库
更新库:updatedb