Почему после установки php-fpm и изменения блока сервера nginx не перезагружается?Php

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Почему после установки php-fpm и изменения блока сервера nginx не перезагружается?

Сообщение Anonymous »

Установил nginx и запустил его. Установил php-fpm ок и запустил ок. Изменён серверный блок с использованием cgi:
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
fastcgi_pass 127.0.0.1:9000;
}

Но nginx не перезапускается.
Я попробовал «перезапустить службу sudo nginx», но получил:
manager@Server:~ $ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

Диагностический журналctl -u nginx --no-pager:
Nov 18 12:36:41 Server nginx[14551]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 18 12:36:42 Server nginx[14551]: nginx: [emerg] still could not bind()
Nov 18 12:36:42 Server systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 18 12:36:42 Server systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 18 12:36:42 Server systemd[1]: Failed to start A high performance web server and a reverse proxy server.


Подробнее здесь: https://stackoverflow.com/questions/792 ... il-to-rest
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»