How to update my Nginx with yum on CentOS 7
<p>I used <code>yum install nginx</code> on my ECS server, but the version is not high enough to support http2. After googling around, I added a config file:</p>

<pre><code>/etc/yum.repos.d/nginx.repo
</code></pre>

<p>With the content:</p>

<pre><code>[nginx]  
name=nginx repo  
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/  
gpgcheck=0  
enabled=1
</code></pre>

<p>Then I run <code>yum update nginx</code>, which gave me the version 1.8.1, which is still not high enough to support http2.</p>

<p>Can anyone help me update my nginx to version 1.9.5 or higher, please?</p>