系统相关
首页 > 系统相关> > Linux系统如何查看nginx安装目录

Linux系统如何查看nginx安装目录

作者:互联网

原文网址:https://www.yisu.com/zixun/677737.html

一、查看 nginx 安装目录

 ps -ef | grep nginx

二、查看配置文件 nginx.conf 路径

 nginx -t

这条命令也可以用于检查配置文件是否正确。

当然也可以使用 find 命令进行文件查找

 # 从 / 根目录下查找文件名为 nginx.conf 的文件
 find / -name nginx.conf
 # 从 /etc 目录下查找文件名为 nginx.conf 的文件
 find /etc -name nginx.conf

标签:配置文件,etc,查找文件,目录,nginx,conf,Linux,find
来源: https://www.cnblogs.com/bruce1992/p/16559285.html