title: Running Nginx as non root user
body: <p>I installed Nginx using Ansible. To install on Centos7 I used the yum package so it by default was run as <em>root</em> user. I want it to start and run as a different user (ex - <em>nginx</em> user) in the Centos box. When I try to run it with a different user I get the following error:</p>
  
  <blockquote>
    <p>Job for nginx.service failed because the control process exited with
    error code. See "systemctl status nginx.service" and "journalctl -xe"
    for details.</p>
  </blockquote>
  
  <p>I know it's not advisable to run as root. So how do I get around this and run nginx as a non root user. Thanks</p>