Building nginx from Sources
Building nginx from Sources
The build is configured using the configure
command. It defines various aspects of the system, including the methods nginx is allowed to use for connection processing. At the end it creates a Makefile
. The configure
command supports the following parameters:
-
--prefix=
— defines a directory that will keep server files. This same directory will also be used for all relative paths set bypath
configure
(except for paths to libraries sources) and in thenginx.conf
configuration file. It is set to the/usr/local/nginx
directory by default. -
--sbin-path=
— sets the name of an nginx executable file. This name is used only during installation. By default the file is namedpath
.prefix
/sbin/nginx