Ubuntu under the installation Nginx, directly apt-get install Nginx on the line, very convenient.
But today installed CentOS6.2, direct yum install Nginx not, to first deal with the next source, the following is the complete installation process, but also very simple:
1, CentOS 6, first execute:
RPM-IVH http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2. View nginx information for Yum
[]# Yum Info nginx
Loaded Plugins:fastestmirror
Determining fastest Mirrors
* base:mirror.esocc.com
* extras:mirror.esocc.com
* updates:mirror.esocc.com
Base | 3.7 KB 00:00
base/primary_db | 4.4 MB 00:28
Extras | 3.5 KB 00:00
extras/primary_db | KB 00:00
Nginx | 2.9 KB 00:00
nginx/primary_db | KB 00:00
Updates | 3.5 KB 00:00
updates/primary_db | 2.1 MB 00:10
Installed Packages
Name:nginx
Arch:x86_64
version:1.4.0
Release:1.el6.ngx
size:874 K
Repo:installed
From Repo:nginx
Summary:nginx is a high performance Web server
url:http://nginx.org/
License:2-clause Bsd-like License
Description:nginx [engine x] is a HTTP and reverse proxy server, as well as
: a mail proxy server
3. Install and start Nignx
[[email protected] ~]# Yum install Nginx
[[Email protected] ~]# service Nginx start
Starting nginx: [OK]
4, then enter the browser, enter the http://192.168.0.161/test, if you see
Welcome to nginx!
If you see this page, the Nginx Web server is successfully installed and working. Further configuration is required.
For online documentation and the refer to nginx.org.
Commercial support was available at nginx.com.
Thank for using Nginx.
Congratulations, you've done it!
If you can not connect to Nginx, for a lot of reasons, but you can first check whether the 1,nginx service is really up; 2,linux Server firewall is open
This article from http://www.ttsofts.com/archives/191
CentOS Direct Yum Install Nginx