Home  >  Article  >  Operation and Maintenance  >  How to view the nginx installation directory in Linux system

How to view the nginx installation directory in Linux system

WBOY
WBOYforward
2023-05-24 13:40:0717410browse

1. Check the nginx installation directory

 ps -ef | grep nginx

2. Check the configuration file nginx.conf path

 nginx -t

This command can also be used To check whether the configuration file is correct.

Of course you can also use the find command to search for files

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

What versions of Linux are there?

The versions of Linux are: Deepin, UbuntuKylin, Manjaro, LinuxMint , Ubuntu and other versions. Among them, Deepin is one of the best-developed Linux distributions in China; Ubuntu Kylin is a derivative distribution based on Ubuntu; Manjaro is a Linux distribution based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP and is simple and easy to use; Ubuntu is a desktop application Mainly Linux operating system.

The above is the detailed content of How to view the nginx installation directory in Linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete