How to list installed Nginx modules and compiled flags

How to list installed Nginx modules and compiled flags

To list the installed Nginx modules and compiled flags on a Linux system, follow these steps:

  1. Open a terminal and run the following command:
refe‮‬r to:lautturi.com
nginx -V

This will display a list of the installed Nginx modules and compiled flags.

  1. Look for the --modules-path option. This will show the path to the directory where the Nginx modules are installed.

  2. 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.

  1. To list the compiled flags, look for the --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.

Created Time:2017-10-16 14:38:50  Author:lautturi