'No package nginx available' error CentOS 6.5

Thơ Hoàng picture Thơ Hoàng · Dec 2, 2014 · Viewed 24.6k times · Source

I'm trying to install nginx on CentOS 6.5, then I added these lines on file /etc/yum.repos.d/nginx.repo enter image description here

Then install nginx by:
enter image description here

And I've got a message error: No package nginx available How can I fix it? I would greatly appreciate any help you can give me in working this problem!

Answer

gexly picture gexly · Jun 22, 2015

nginx is not a part of base CentOS repository.

But you can install EPEL repositiry to get nginx:

yum install epel-release

and then

yum install nginx