Howto install Nginx on Centos 6.3 or Redhat 6.3 RHEL

Howto install Nginx on Centos 6.3 or Redhat 6.3 RHEL

1. Before installing Nginx, we should instlal epel repository by these topics

http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-or-redhat-6-3-rhel/

http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-x86_64-or-redhat-6-3/

2. Install nginx

[root@localhost ~]# yum install nginx
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: mirror.yourconnect.com
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package nginx.x86_64 0:1.0.15-3.el6 will be installed
–> Processing Dependency: GeoIP for package: nginx-1.0.15-3.el6.x86_64
–> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx-1.0.15-3.el 6.x86_64
–> Running transaction check
—> Package GeoIP.x86_64 0:1.4.8-1.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nginx x86_64 1.0.15-3.el6 epel 379 k
Installing for dependencies:
GeoIP x86_64 1.4.8-1.el6 epel 620 kTransaction Summary
================================================================================
Install 2 Package(s)

Total download size: 999 k
Installed size: 2.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): GeoIP-1.4.8-1.el6.x86_64.rpm | 620 kB 00:00
(2/2): nginx-1.0.15-3.el6.x86_64.rpm | 379 kB 00:00
————————————————————————————————————————————————
Total 181 kB/s | 999 kB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : GeoIP-1.4.8-1.el6.x86_64 1/2
Installing : nginx-1.0.15-3.el6.x86_64 2/2
Verifying : nginx-1.0.15-3.el6.x86_64 1/2
Verifying : GeoIP-1.4.8-1.el6.x86_64 2/2

Installed:
nginx.x86_64 0:1.0.15-3.el6

Dependency Installed:
GeoIP.x86_64 0:1.4.8-1.el6

Complete!
[root@localhost ~]#

3. Start nginx

[root@localhost ~]# /etc/init.d/nginx start
Starting nginx: [ OK ]
[root@localhost ~]#

4. Browse Nginx web server

http://x.x.x.x

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>