Detailed installation directory for Nginx

Keywords: Nginx encoding

  • 1.Nginx Log Rotation, Log Cutting for logrotate Service | Profile
/etc/logrotate.d/nginx
  • 2.Nginx Home Profile|Directory, Profile
/etc/nginx 
/etc/nginx/nginx.conf
/etc/nginx/conf.d
/etc/nginx/conf.d/default.conf
  • 3.cgi configuration related, fastcgi | configuration file
/etc/nginx/fastcgi_params
/etc/nginx/scgi_params 
/etc/nginx/uwsgi_params
  • 4. Encoding Transform Mapping Transform File|Profile
/etc/nginx/koi-utf
/etc/nginx/koi-win
/etc/nginx/win-utf
  • 5. Set the Content-Type of the http protocol to correspond to the extension: Type of data returned | Profile
/etc/nginx/mime.types
  • 6. Used to configure how the system daemon manager is managed: centos7.2 | Profile
/usr/lib/systemd/system/nginx-dubug.service
/usr/lib/systemd/system/nginx.service
/etc/sysconfig/nginx
/etc/sysconfig/nginx-dubug
  • 7.Nginx Module Directory|Directory
/usr/lib64/nginx/modules
/etc/nginx/modules
  • 8.Nginx Service Startup Management Terminal Commands|Commands
/usr/sbin/nginx
/usr/sbin/nginx-debug
  • 9.Nginx Manual and Help Files|Files, Directories
/usr/share/doc/nginx-1.10.2
/usr/share/doc/nginx-1.10.2/COPYRIGHT
/usr/share/man/man8/nginx.8.gz
  • Cache Directory for 10.Nginx|Directory
/var/cache/nginx
  • 11.Nginx Log Directory|Directory
/var/log/nginx

Install compilation parameters
- 1. Installation destination directory or path

--prefix=/usr/share/nginx
--sbin-path=/usr/sbin/nginx 
--modules-path=/usr/lib64/nginx/modules 
--conf-path=/etc/nginx/nginx.conf 
--error-log-path=/var/log/nginx/error.log 
--http-log-path=/var/log/nginx/access.log
--pid-path=/run/nginx.pid 
--lock-path=/run/lock/subsys/nginx
  • 2. Temporary files retained by Nginx when executing corresponding modules
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body 
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy 
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi 
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi 
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi
  • 3. Set user and group users for Nginx process startup
--user=nginx
--group=nginx
  • 4. Setting additional parameters will be added to the CFLAGS variable
--with-cc-opt=parameters
  • 5. Set additional parameters to link system libraries
--with-ld-opt=parameters

Posted by Pieman86 on Sun, 19 Jul 2020 08:07:05 -0700