<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div><span style="font-family:"helvetica Neue",helvetica;font-size:14px">Hello!</span></div><div><span style="font-family:"helvetica Neue",helvetica;font-size:14px"><br></span></div><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> Why does this error occur (Ubuntu 18.04/nginx 1.14.0)? </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px">><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> nginx.conf:21 </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> user www-data; </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px">><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> error.log </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px">> <a href="http://airmail.calendar/2019-01-24%2019:07:07%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">2019/01/24 19:07:07</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> [warn] 3526#3526: the "user" directive makes sense only if the master process runs with super-</span><div><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> user privileges, ignored in /etc/nginx/nginx.conf:21 </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px">> <br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> # ps -axu |grep nginx </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> root 3439 0.0 0.2 360156 9352 ? Ss  </span><a href="http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">19:07</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px">  </span><a href="http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">0:00</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> nginx: master process /usr/sbin/nginx -g daemon on; master_process > on; </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> www-data 3441 0.1 0.5 </span><a href="tel://364044 20716" style="font-family:"helvetica Neue",helvetica;font-size:14px">364044 20716</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> ? S  </span><a href="http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">19:07</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px">  </span><a href="http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">0:00</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> nginx: worker process </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> www-data 3442 0.2 0.5 </span><a href="tel://364560 21248" style="font-family:"helvetica Neue",helvetica;font-size:14px">364560 21248</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> ? S  </span><a href="http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">19:07</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px">  </span><a href="http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">0:00</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> nginx: worker process </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">> www-data 3443 0.0 0.3 </span><a href="tel://362456 14852" style="font-family:"helvetica Neue",helvetica;font-size:14px">362456 14852</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> ? S  </span><a href="http://airmail.calendar/2019-01-25%2019:07:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">19:07</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px">  </span><a href="http://airmail.calendar/2019-01-25%2000:00:00%20GMT+8" style="font-family:"helvetica Neue",helvetica;font-size:14px">0:00</a><span style="font-family:"helvetica Neue",helvetica;font-size:14px"> nginx: cache manager process </span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><br style="font-family:"helvetica Neue",helvetica;font-size:14px"></div><div>The error message is self explaining, your master process should be run with</div><div>the superuser privileges then you can specify workers’ user.</div></body></html>