linux查找文件利器
发布时间:2020-12-13 23:35:51 所属栏目:Linux 来源:网络整理
导读:查找文件 比如:找nginx.conf配置文件 locate nginx.conf /usr/local/etc/nginx/ nginx.conf /usr/local/etc/nginx/nginx.conf. default 如果提示??locate? 命令找不到? 就安装下? 安装:yum - y install mlocate安装完再尝试用locate定位内容,发现依然不好
查找文件比如:找nginx.conf配置文件 locate nginx.conf /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf.default 如果提示??locate? 命令找不到? 就安装下? 安装:yum -y install mlocate 安装完再尝试用locate定位内容,发现依然不好使,报了新的错误: locate: can not stat () `/var/lib/mlocate/mlocate.db‘: No such file or directory 更新库:updatedb 查找进程相关ps aux|grep nginx ps -ef|grep nginx 查找nginx的启动的时候的配置文件 /usr/local/opt/nginx/bin/nginx -t nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful 测试可知,nginx的配置文件路径为:/usr/local/etc/nginx/nginx.conf?且调用有效。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |