s
问题1:执行locate时提示如:locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
[root@centos82-scts08t ~]# locate nginx.conf
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
[root@centos82-scts08t ~]# locate java
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
[root@centos82-scts08t ~]# locate nginx
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
解决1:则执行updatedb后即可解决问题。
[root@centos82-scts08t ~]# updatedb
[root@centos82-scts08t ~]# locate nginx
end
标签:locate,No,Centos8.2,mlocate,centos82,scts08t,root,OS From: https://www.cnblogs.com/lindows/p/16868817.html