[root@localhost ~]# yum install nginx
[root@localhost ~]# firewall-cmd --permanent --add-service=http
[root@localhost ~]# firewall-cmd --reload
[root@localhost ~]# systemctl enable firewalld
[root@localhost ~]# systemctl start nginx.service
[root@localhost ~]# systemctl enable nginx.service