如何解决locate命令无法打开mlocate.db数据库文件的问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计131个文字,预计阅读时间需要1分钟。
今天遇到一个这样的问题[问题编号:rootdb1]。
今天遇到一个这样的问题[rootdb1]#locatedefaults.conflocate:cannotopenvarlibmlocatemlocate.db:N今天遇到一个这样的问题
[rootdb1 /]# locate defaults.conf
locate: can not open /var/lib/mlocate/mlocate.db: No such file or directory
解决的办法
更新数据库
[rootdb1 /]# updatedb
[rootdb1 /]# less $(locate defaults.conf)# GDM Configuration file.## This file should not be updated by hand. Since GDM 2.13.0.4,。。。。。。。
转:blog.51cto.com/setchio/1754140
本文共计131个文字,预计阅读时间需要1分钟。
今天遇到一个这样的问题[问题编号:rootdb1]。
今天遇到一个这样的问题[rootdb1]#locatedefaults.conflocate:cannotopenvarlibmlocatemlocate.db:N今天遇到一个这样的问题
[rootdb1 /]# locate defaults.conf
locate: can not open /var/lib/mlocate/mlocate.db: No such file or directory
解决的办法
更新数据库
[rootdb1 /]# updatedb
[rootdb1 /]# less $(locate defaults.conf)# GDM Configuration file.## This file should not be updated by hand. Since GDM 2.13.0.4,。。。。。。。
转:blog.51cto.com/setchio/1754140

