Установка nginx в Debian linux

Статья устарела, смотрите на дату в урле
Скачиваем


Всё конфигурируется, а потом выводятся строки

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

Нужно поставить библиотеки (тут написано, какие потом ещё могут понадобиться)

Потом продолжаем установку:

В итоге конфигурируется с параметрами

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.pid»
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»

Далее конфигурируем автозагрузку через скрипт init.d (взято отсюда).
Для этого создаём файл в /etc/init.d/nginx со следующим содержимым:

и потом

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

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

Список использованной литературы:

Similar Posts

2 Responses so far.

  1. Зачем ставить пакетный дистр а потом собирать из сырцов софт?
    Юзай Gentoo или *BSD
    Дети такого начитаются, потом такого наадминят :)

Добавить комментарий для bullgare Отменить ответ