title: reinstall nginx if i delete /etc/nginx in centos server how to reinstall it again i am new in centos and nginx
body: <p><strong>i install nginx in my remote server but i done some error in my nginx.conf file and could not able to revert back</strong><br>
  so it tried to remove my nginx and reconfigure it <br>
  so i used these step which is given in the link to delete my nginx<br>
  <a href="http://www.ehowstuff.com/how-to-remove-uninstall-nginx-on-centos-7-rhel-7-oracle-linux-7/" rel="nofollow">http://www.ehowstuff.com/how-to-remove-uninstall-nginx-on-centos-7-rhel-7-oracle-linux-7/</a>
  <br>
  then i use<br> <strong>yum remove nginx</strong> and again reinstall it<br>
  but when i try <br><strong>sudo systemctl start nginx</strong> or <strong>[root@lotto nginx]# service nginx start</strong> <br>
  its showing <br><br>
  <strong>Job for nginx.service failed because the control process exit<code>enter code here</code>ed with error code. See "systemctl status nginx.service" and "journalctl -xe" for details</strong>.<br>
  when i am using <br>
  <strong>[root@lotto nginx]# systemctl status nginx.service</strong>
  <br>showing <br></p>
  
  <p>nginx.service - The nginx HTTP and reverse proxy server<br>
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)<br>
     Active: failed (Result: exit-code) since Fri 2016-07-01 07:48:44 EDT; 18s ago
    Process: 30832 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)<br>
    Process: 30830 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)<br>
   Main PID: 14307 (code=exited, status=0/SUCCESS)<br></p>
  
  <p>Jul 01 07:48:44 lotto systemd[1]: Starting The nginx HTTP and reverse proxy server...
  Jul 01 07:48:44 lotto nginx[30832]: nginx: [emerg] getpwnam("nginx") failed in /etc/nginx/nginx.conf:5<br>
  Jul 01 07:48:44 lotto nginx[30832]: nginx: configuration file /etc/nginx/nginx.conf test failed<br>
  Jul 01 07:48:44 lotto systemd[1]: nginx.service: control process exited, code=exited status=1<br>
  Jul 01 07:48:44 lotto systemd[1]: Failed to start The nginx HTTP and reverse proxy server.<br>
  Jul 01 07:48:44 lotto systemd[1]: Unit nginx.service entered failed state.
  Jul 01 07:48:44 lotto systemd[1]: nginx.service failed.<br>
  and <strong>[root@lotto nginx]# journalctl -xe</strong> <br><br></p>
  
  <p>nginx.service - The nginx HTTP and reverse proxy server
  <br>
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)<br>
     Active: failed (Result: exit-code) since Fri 2016-07-01 07:48:44 EDT; 18s ago<br>
    Process: 30832 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)<br>
    Process: 30830 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)<br>
   Main PID: 14307 (code=exited, status=0/SUCCESS)</p>