[alibaba/tengine]tengine2.2.0设置user指令,错误日志不间断的warn

2024-07-10 767 views
2

配置文件设置"user nginx;" 其中nginx是系统用户。启动运行都正常,就是每个一个小时左右就会在错误日志打印:

   2017/08/08 05:40:45 [warn] 6377#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 05:40:45 [warn] 6379#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 05:40:46 [warn] 6381#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 06:40:49 [warn] 6426#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 06:40:50 [warn] 6428#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 06:40:50 [warn] 6430#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 07:40:54 [warn] 6475#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 07:40:54 [warn] 6477#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 07:40:54 [warn] 6479#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 08:40:58 [warn] 6524#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 08:40:58 [warn] 6526#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
    2017/08/08 08:40:59 [warn] 6528#0: the "user" directive makes sense only if the master proce
    ss runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1

不知道为何

回答

9

没有sudo权限吧

0

nginx是用root启动的,理论上不应该有问题的

7

看日志每次都是不同的进程号在报错误. 没有没有定时脚本在跑? 比如在用个人账户做 -t 或则 reload操作?

9

这个方向可以检查一下,定时脚本没有发现 因为有时又不是一个小时,同时有多个

ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 07:14:03 [warn] 21467#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 07:14:04 [warn] 21469#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:14:08 [warn] 21795#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:14:08 [warn] 21797#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:14:09 [warn] 21799#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:27:00 [warn] 21872#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:27:00 [warn] 21874#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 08:27:00 [warn] 21876#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 09:14:13 [warn] 22138#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 09:14:13 [warn] 22140#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 09:14:13 [warn] 22142#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 10:14:17 [warn] 22733#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 10:14:18 [warn] 22735#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2017/08/29 10:14:18 [warn] 22737#0: the "user" directive makes sense only if the master proc
ess runs with super-user privileges, ignored in /app/local/nginx/conf/nginx.conf:1
2

你看下你的master进程有重启吗 ps aux |grep nginx 能方便贴一下配置文件么

7

抓到元凶了,坑爹的阿里云盾,定期的执行nginx -V

    0 root     13070     1 13070 13070    -1 /usr/local/aegis/aegis_client/aegis_10_31/AliYu
nDun
    0 root     13524  1620 13524 13524    -1 sshd: root@pts/2
    0 root     13540 13524 13540 13540 13947 -bash
    0 root     13947 13540 13947 13540 13947 tail /app/log/nginx/error.log -f
  498 nginx    14192 13070 14192 13070    -1 bash -c /app/local/nginx/sbin/nginx -V 2>&1
    0 root     14194  5900 14194  5900 14194 ps -eo uid,euser,pid,ppid,pgrp,session,tpgid,co
mmand
  498 nginx    14195 14192 14192 13070    -1 /app/local/nginx/sbin/nginx -V