centos7 安装locate 使用locate my.cnf命令可以列出所有的my.cnf文件 yum -y install mlocate 原因是安装完后没有更新库 更新库:updatedb 纵有白头俱老意,奈何缘浅路芊芊.