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
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
- 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.
- 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