Ubuntu/22.04LTS/nginx/systemdについて、ここに記述してください。

nginx.conf pid=/run/nginx.pid に変更したら、動いている。-- ToshinoriMaeno 2024-03-25 02:09:02

root@vm-837b944d-20:/lib/systemd/system# systemctl start nginx.service
root@vm-837b944d-20:/lib/systemd/system# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:>
     Active: active (running) since Mon 2024-03-25 11:06:07 JST; 7s ago
       Docs: man:nginx(8)
    Process: 1617 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>
    Process: 1618 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (c>
   Main PID: 1619 (nginx)
      Tasks: 2 (limit: 2219)
     Memory: 2.0M
        CPU: 14ms
     CGroup: /system.slice/nginx.service
             ├─1619 "nginx: master process /usr/sbin/nginx -g daemon on; master>
             └─1620 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "">

Mar 25 11:06:07 vm-837b944d-20 systemd[1]: Starting A high performance web serv>
Mar 25 11:06:07 vm-837b944d-20 systemd[1]: Started A high performance web serve>

MoinQ: Ubuntu/22.04LTS/nginx/systemd (last edited 2024-03-25 02:09:02 by ToshinoriMaeno)