Перегрузить не пробовал машинку?
Пробовал.
Если убрать часть конфига про 9000 порт, то nginx подымается нормально.
Пользователь добавил сообщение 24 Июня 2016, 12:13:23:
Продолжаем расследование...
$ systemctl list-sockets | grep :9000
127.0.0.1:9000 usermanager.socket usermanager.service
$ cat /etc/nginx/sites-available/usermanager | grep listen
listen 5050 deferred;
$ curl -X GET "localhost:9000/"
curl: (7) Failed to connect to localhost port 9000: В соединении отказано
$ curl -X GET "localhost:5050/"
# Ответ usermanager, ok
Пользователь добавил сообщение 24 Июня 2016, 12:27:34:
Фух! Проблема разрешилась!
$ sudo systemctl stop usermanager.service
$ sudo systemctl disable usermanager.service
# reboot...
$ sudo netstat -natp | grep :9000
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 956/nginx -g daemon
tcp 0 0 127.0.0.1:47550 127.0.0.1:9000 TIME_WAIT -
Is there some reason why the netstat command did not list pywwetha and listed it as init?
That's the way systemd works (I'm not intimately familiar with systemd yet) -- it must treat these services as parts of its own init process instead of as separate processes
systemd works a bit like inetd for these things: it listens on the network ports and starts the appropriate daemon when an incoming connection is made. I guess the idea is that the port is immediately available to be connected to as soon as systemd has started.Another systemd design decision I don't really agree with (but maybe I'm just an old fart who can't get used to these newfangled things).
Короче во всём виноват systemd