4 steps to Install NGINX on CentOS 7.0

Share this Article :

Q. How to install NGINX on centOS 7.0 ?

A. 4 easy steps to install and run NGINX on CentOS 7.0 :

1. Add Nginx Repository :

[[email protected] ~]# rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2. Install with yum command :

[[email protected] ~]# yum install nginx -y

3. Start NGINX service :

[[email protected] ~]# systemctl start nginx.service

4. Enable NGINX at boot :

[[email protected] ~]# systemctl enable nginx.service
ln -s '/usr/lib/systemd/system/nginx.service' '/etc/systemd/system/multi-user.target.wants/nginx.service'

Leave a Reply