CentOS Direct Yum Install Nginx

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.