【环境信息】
硬件信息:
1) 虚拟机 内存:4 GiB vCPU:1
软件信息:
openeulerversion=openEuler-21.03
compiletime=2021-02-23-17-45-36
gccversion=9.3.1-20210204.16.oe1
kernelversion=5.10.0-2.0.0.11.oe1
openjdkversion=1.8.0.282.b08-5.oe1
arch:arm x86
【问题复现步骤】
systemctl start nginx
journalctl -u nginx
出现概率:必现
【预期结果】
查看日志不会出现”Failed to parse PID from file /run/nginx.pid“
【实际结果】
查看日志出现”Failed to parse PID from file /run/nginx.pid“
【附件信息】
Hey street_dust, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
@street_dust
本地未复现,麻烦用最新的镜像再次确认一下问题存在
[root@openEuler ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Mar 15 15:14:32 openEuler systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
[root@openEuler ~]# systemctl start nginx
[root@openEuler ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2021-03-15 15:14:52 CST; 1s ago
Process: 26129 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 26131 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 26133 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 26134 (nginx)
Tasks: 5 (limit: 3464)
Memory: 22.7M
CGroup: /system.slice/nginx.service
├─26134 nginx: master process /usr/sbin/nginx
├─26135 nginx: worker process
├─26136 nginx: worker process
├─26137 nginx: worker process
└─26138 nginx: worker process
Mar 15 15:14:52 openEuler systemd[1]: Starting The nginx HTTP and reverse proxy server...
Mar 15 15:14:52 openEuler nginx[26131]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Mar 15 15:14:52 openEuler nginx[26131]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Mar 15 15:14:52 openEuler systemd[1]: Started The nginx HTTP and reverse proxy server.
[root@openEuler ~]# vim /etc/nginx/nginx.conf
[root@openEuler ~]#
[root@openEuler ~]# journalctl -u nginx
-- Journal begins at Fri 2021-03-12 11:29:48 CST, ends at Mon 2021-03-15 15:14:52 CST. --
Mar 15 15:14:32 openEuler systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.
Mar 15 15:14:52 openEuler systemd[1]: Starting The nginx HTTP and reverse proxy server...
Mar 15 15:14:52 openEuler nginx[26131]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Mar 15 15:14:52 openEuler nginx[26131]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Mar 15 15:14:52 openEuler systemd[1]: Started The nginx HTTP and reverse proxy server.
[root@openEuler ~]#
[root@openEuler ~]# cat /etc/openEuler-latest
openeulerversion=openEuler-21.03
compiletime=2021-03-11-15-46-14
gccversion=9.3.1-20210204.16.oe1
kernelversion=5.10.0-4.9.0.22.oe1
openjdkversion=1.8.0.282.b08-5.oe1
[root@openEuler ~]#
在x86虚拟机上复现,修复链接为
!29:Fix NGINX pidfile handling
登录 后才可以发表评论