@BaJIepaMoTo6JIok

Как понять откуда запущен процесс nginx?

Помогите разобраться с nginx. Служба не может запустится, т.к. занят 80\443 порт
~]$ sudo systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2023-08-09 17:55:59 MSK; 18h ago
  Process: 15247 ExecReload=/usr/sbin/nginx -s reload (code=exited, status=0/SUCCESS)
  Process: 37803 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
  Process: 37752 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 37750 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
 Main PID: 104012 (code=killed, signal=KILL)
   CGroup: /system.slice/nginx.service
           ├─ 81471 nginx: worker process
           ├─ 81472 nginx: worker process
           ├─ 81473 nginx: worker process
           ├─ 81475 nginx: worker process
           ├─ 81477 nginx: worker process
           ├─ 81478 nginx: worker process
           ├─ 81480 nginx: worker process
           ├─ 81482 nginx: worker process
           ├─126415 nginx: worker process
           └─126417 nginx: worker process

При этом netstat показывает, что на портах все еще висит nginx
~]$ sudo netstat -tulpn | grep nginx
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      81471/nginx: worker
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      81471/nginx: worker
tcp6       0      0 :::80                   :::*                    LISTEN      81471/nginx: worker

Как понять что это за процессы?
  • Вопрос задан
  • 124 просмотра
Решения вопроса 1
SignFinder
@SignFinder
Wintel\Unix Engineer\DevOps
подайте команду ps -v и пид процесса, в вашем случае ps -v 81471
Либоу убейте все процессы через killall -9 nginx
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@Drno
killall nginx
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы