Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
$ sudo netstat -natp | grep :9000tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1/init $ ps -aux | grep " 1 " root 1 0.3 0.2 185568 4380 ? Ss 15:13 0:01 /sbin/init splash
2016/06/24 15:13:35 [emerg] 1494#1494: bind() to 0.0.0.0:9000 failed (98: Address already in use)2016/06/24 15:13:35 [emerg] 1494#1494: bind() to 0.0.0.0:9000 failed (98: Address already in use)2016/06/24 15:13:35 [emerg] 1494#1494: bind() to 0.0.0.0:9000 failed (98: Address already in use)2016/06/24 15:13:35 [emerg] 1494#1494: bind() to 0.0.0.0:9000 failed (98: Address already in use)2016/06/24 15:13:35 [emerg] 1494#1494: bind() to 0.0.0.0:9000 failed (98: Address already in use)2016/06/24 15:13:35 [emerg] 1494#1494: still could not bind()
Перегрузить не пробовал машинку?
$ systemctl list-sockets | grep :9000127.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
$ 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 daemontcp 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 processessystemd 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-эшники хоть когда-то о безопасности думали?!?
Страница сгенерирована за 0.019 секунд. Запросов: 22.