Install Nginx on CentOS 5.5 yum

Source: Internet
Author: User

Using centos yum to install software is very simple and convenient, but there is also a drawback that the software installed from yum cannot be the latest version. If you need to install the latest nginx version, you need to download the source code from the official website and manually compile and install it. This article describes how to install nginx using yum.

Install the EPEL package
  1. Rpm-Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Install nginx

Before installation, you can use yum info nginx to view the nginx version.

  1. Yum install nginx

The location of nginx. conf is in/etc/nginx/
Nginx is in/usr/sbin/
Stop nginx: service nginx stop
Start nginx: service nginx start
Restart nginx: service nginx restart

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.