1) Uninstall nginx
[root@locahost /]# yum remove nginx
2) Check whether there nginx
[root@localhost /]# which nginx
3) re-install Nginx
[root@localhost /]# yum install nginx
4) Start Nginx
[root@localhost /]# yum start nginx
5) Set up automatic boot Nginx
[root@localhost /]# yum enable nginx