centos7默認是沒有安裝mlocate的,因此沒法使用這兩個命令php
yum install mlocate
就能夠了centos
參考:https://fedorahosted.org/mlocate/centos7