Welcome! Log In Create A New Profile

Advanced

Re: User directive error

January 24, 2019 08:52PM
Hello!

> Why does this error occur (Ubuntu 18.04/nginx 1.14.0)?
>
> nginx.conf:21
> user www-data;
>
> error.log
> 2019/01/24 19:07:07
http://airmail.calendar/2019-01-24%2019:07:07%20GMT+8 [warn] 3526#3526:
the "user" directive makes sense only if the master process runs with super-
> user privileges, ignored in /etc/nginx/nginx.conf:21
>
> # ps -axu |grep nginx
> root 3439 0.0 0.2 360156 9352 ? Ss 19:07
http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8 0:00
http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8 nginx: master
process /usr/sbin/nginx -g daemon on; master_process > on;
> www-data 3441 0.1 0.5 364044 20716 <//364044 20716> ? S 19:07
http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8 0:00
http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8 nginx: worker
process
> www-data 3442 0.2 0.5 364560 21248 <//364560 21248> ? S 19:07
http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8 0:00
http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8 nginx: worker
process
> www-data 3443 0.0 0.3 362456 14852 <//362456 14852> ? S 19:07
http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8 0:00
http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8 nginx: cache
manager process

The error message is self explaining, your master process should be run with
the superuser privileges then you can specify workers’ user.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

User directive error

Palvelin Postmaster via nginx January 24, 2019 12:16PM

Re: User directive error

tokers January 24, 2019 08:52PM

Re: User directive error

Palvelin Postmaster via nginx January 25, 2019 05:44AM

RE: User directive error

Maxim Ozerov January 25, 2019 12:04PM

Re: User directive error

Palvelin Postmaster via nginx January 26, 2019 10:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 116
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready