To list the installed Nginx modules and compiled flags on a Linux system, follow these steps:
nginx -V
This will display a list of the installed Nginx modules and compiled flags.
Look for the --modules-path
option. This will show the path to the directory where the Nginx modules are installed.
To list the installed modules, run the following command:
ls <modules-path>
Replace <modules-path>
with the path to the directory where the Nginx modules are installed.
This will display a list of the installed Nginx modules.
--with-
options in the output of the nginx -V
command. These options will show the flags that were used when compiling Nginx.For example, if you see the following option:
--with-http_ssl_module
This means that the HTTP SSL module was compiled into Nginx.
That's it! You now have a list of the installed Nginx modules and compiled flags on your Linux system.