How to install nginx on Linux

nginx package is available for RHEL, CentOS and Fedora distributions. Also available for Ubuntu. However you first need to download the package

First you need to get the nginx shown as below and then run 
yum install nginx
service nginx start   (you can use stop, reload as well)

You can find the index html file under /usr/share/nginx/html directory. This is for the base install.

For RHEL/Oracle Linux  version 5
rpm -Uvh http://nginx.org/packages/rhel/5/noarch/RPMS/nginx-release-rhel-5-0.el5.ngx.noarch.rpm
yum install nginx
For RHEL/Oracle Linux  version 6
rpm -Uvh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
yum install nginx
For Centos 5
rpm -Uvh  http://nginx.org/packages/centos/5/noarch/RPMS/nginx-release-centos-5-0.el5.ngx.noarch.rpm
yum install nginx
For Centos 6
rpm -Uvh  http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx

Comments

Post a Comment

Popular posts from this blog

VMware fix for Invalid manifest and ova file import failed errors

SOAPUI - import certificate

Centrally Managed Users (CMU) - New Feature in Oracle Database 18c