how to Installing nginx on Debian linux

Everything is configured, and then displays the string


./configure: error: the rewrite module HTTP requires the PCRE library.
You can either disable the module by usingwithout-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by usingwith-pcre = option.


You need to put libraries (here written, which then may be required)

Then continue with the installation:

In the end is configured with parameters

Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1 library is not used
+ using system zlib library

nginx path prefix: «/usr/local/nginx»
nginx binary file: «/usr/local/nginx/sbin/nginx»
nginx configuration prefix: «/usr/local/nginx/conf»
nginx configuration file: «/usr/local/nginx/conf/nginx.conf»
nginx pid file: «/usr/local/nginx/logs/»
nginx error log file: «/usr/local/nginx/logs/error.log»
nginx http access log file: «/usr/local/nginx/logs/access.log»
nginx http client request body temporary files: «client_body_temp»
nginx http proxy temporary files: «proxy_temp»
nginx http fastcgi temporary files: «fastcgi_temp»

Next, configure startup script init.d (taken from here).
To do this, create a file with the following content:/etc/init.d/nginx

и потом

Первая строка добавляет права на выполнение, а вторая обновляет автозагрузку.
Теперь можно пользоваться командами

Конфигурация nginx: