我在一台服务器上运行多个 Web 应用程序,使用 Nginx 作为 Web 服务器。在 git pull 更新到其中一个基于 django 的网站后,我重新启动了 Nginx 服务器。为了检查一切是否运行正常,我运行了命令,sudo service nginx status
它给出了以下输出。
ubuntu@myIp:~$ sudo service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-05-08 07:04:36 UTC; 1 day 6h ago
Docs: man:nginx(8)
Main PID: 42736 (nginx)
Tasks: 2 (limit: 1141)
Memory: 7.7M
CPU: 3.829s
CGroup: /system.slice/nginx.service
├─42736 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
└─42737 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
May 08 07:04:36 myip systemd[1]: nginx.service: Deactivated successfully.
May 08 07:04:36 myip systemd[1]: Stopped A high performance web server and a reverse proxy server.
May 08 07:04:36 myip systemd[1]: nginx.service: Consumed 6.079s CPU time.
May 08 07:04:36 myip systemd[1]: Starting A high performance web server and a reverse proxy server...
May 08 07:04:36 myip systemd[1]: Started A high performance web server and a reverse proxy server.
让我感到困惑的是 CGroup pid 42737 中有多个空字符串条目。我尝试对此进行搜索,但没有找到任何实质性内容。它只是说空字符串可能表示:
- 该 cgroup 是最近创建的并且尚未为其分配任何进程。
- cgroup 以前用于管理一组进程,但这些进程已退出或被终止。
- 该 cgroup 从未使用过,并且系统上没有运行分配给该 cgroup 的进程。
这是一个值得关注的问题吗?