I'm using a CentOS 6.6 Linux server and I have nginx 1.7.3 Installed on it . How Can I update Nginx to latest stable version (Nginx 1.8) ?
Asked
Active
Viewed 1.7k times
3
-
Is there a feature in 1.8 that you need? If not, you should stick with 1.7.3 until a newer version is available in the official CentOS repos. – EEAA May 04 '15 at 20:59
-
since the connections to my server are high , the change-log is enticing me to update because it says it can handle more connections . what do u suggest? – sajjad hosseini May 04 '15 at 21:10
-
Don't worry about upgrading until you are *sure* that you need it. The benefits of sticking with the official repos are quite high. – EEAA May 04 '15 at 21:12
-
thank u dear EEAA , I will do as you said . I stick with official repo – sajjad hosseini May 04 '15 at 21:33
1 Answers
7
you can setup the nginx repository for CentOS as described here: http://nginx.org/en/linux_packages.html#stable or simply run
yum install http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
once installed the repo run:
yum install nginx
It should upgrade to the latest stable version

julian
- 153
- 7
-
Would this retain any changes made to the existing Nginx configuration? – Nitin Rastogi Aug 01 '19 at 18:10