In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains the "nginx and php-fpm configuration file path instructions", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "nginx and php-fpm configuration file path instructions" bar!
The configuration file path of 1.nginx
In general, when you install nginx, the default path to the configuration file is / usr/local/nginx/conf/nginx.conf.
We can use a link file to point the conf directory to a specific directory for easy management. For example, my company likes to centralize all the server configuration files in / home/server_config, then create a new subdirectory nginx in that directory, and point / usr/local/nginx/conf to / home/server_config/nginx through a link file.
The configuration file path of 2.Virtual host
Usually, the author's company writes each Virtualhost configuration file as a separate file. These separate files are independent in different projects.
But as a trick, we can create a subdirectory include in the same directory as nginx.conf. In the include directory, there are a series of linked files that point to the configuration file of Virtualhost.
The configuration file path of 3.php-fpm
Typically, the execution file for php-fpm is in the sbin directory under the php installation path. (as an aside, when installing php, the installation directory generally defaults to / usr/local, which is not a good choice, because sometimes multiple versions of php may need to exist on one server. A good implementation is to install different versions of php in / usr/local/php-xxx/, where xxx represents the version of php.
By default, the configuration file for php-fpm is placed in the etc directory under the php installation path. But in fact, the configuration file for php-fpm can specify the path when starting php-fpm, and different php-fpm instances can specify different configuration files. This is also of practical significance: Nginx may listen to multiple VirtualHost on a server at the same time, and when you restart a Host, you only need to restart the corresponding php-fpm instance.
4. Configuration file path for each pool
You can specify it yourself. But generally speaking, we will manage it centrally. The author's company chooses to put it under / var/run and build a folder for each instance. In addition to php-fpm, the folder will also put the corresponding pid file and the corresponding unix:socket file.
Thank you for reading, the above is the "nginx and php-fpm configuration file path description" of the content, after the study of this article, I believe you on the nginx and php-fpm configuration file path description of this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.