W
W
WebDev2016-03-31 18:11:40
Nginx
WebDev, 2016-03-31 18:11:40

How to install nginx 1.9 on centos?

Hello everyone, help me figure out the installation of nginx.
On the centos 6.7 server, I want to install nginx 1.9, for this I go to the site
and follow the instructions to create an nginx.repo file in /etc/yum.repos.d with the following content:

[nginx]
name=nginx-repo
baseurl=http://nginx.org/packages/mainline/centos/6/$basearch/
gpgcheck=0
enabled=1

Now I run sudo yum install nginx and it prompts me to install version 1.0.15
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2016-03-31
@BuriK666

yum check-updatedone?

C
CityCat4, 2016-03-31
@CityCat4

Yes, everything seems to be so ... yum list nginx what does it show?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question