Home > Heat, OpenStack, 云计算 > 2.4.2 安装locate工具 —— OpenStack Heat从入门到实践

2.4.2 安装locate工具 —— OpenStack Heat从入门到实践

September 26th, 2015      Leave a comment Go to comments
 
安装locate工具 —— OpenStack Heat从入门到实践
 
locate命令可以在Linux下非常方便的查找文件。
 
One of the best tools for quickly finding files by filename is the locate command. The locate command reads one or more databases prepared by updatedb and writes file names matching at least one of the patterns to standard output, one per line.
Pre-Flight Check
    • These instructions are intended specifically for installing mlocate on CentOS 7.
    • I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.

Step 1: Install mlocate
As a matter of best practice we’ll update our packages:
<span style="font-family: 楷体;">yum -y update</span>
Then let’s install mlocate and any required packages:
<span style="font-family: 楷体;">yum -y install mlocate</span>
Step 2: Updating mlocate
The following command will update the search databases:
<span style="font-family: 楷体;">updatedb</span>
mlocate installs a cron job that will run daily to update search databases at:
/etc/cron.daily/mlocate.cron
 
使用方法:
locate config.py
 
更多《OpenStack Heat从入门到实践》系列文章,请关注
2)微信公众账号,Geek2014。
 
 
ERROR: Request limit exceeded: You have reached the maximum stacks per tenant, 100. Please delete some stacks.
 
Categories: Heat, OpenStack, 云计算 Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.