ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Net Web >

lnmp upgrade nginx support http2

Monday on February 17th, 2020Net Web

After the update chorme with front and firefox, and with https is particularly important, so he applied for a certificate on https, but let Shududu been brooding is not supported http2, arranged on the conf, it will prompt an error only use https 1.1

Toss in line with the spirit of hard search for information, and finally toss successful, the following briefly about the process.

Shududu blog is built on Ali cloud ecs, the system is centos 6.8 32 bit integrated operating environment of the site is lnmp 1.3.

According to the information, http2 need more than nginx 1.9.7 version, openssl need version 1.0.2.

Nginx upgrade process is very simple, one command can handle that,./Upgrade.sh nginx, enter the latest version 1.11.10, Enter, very smooth upgrade.

openssl is the system itself there, centos only 1.0.1e, upgrade also find a lot of tutorials, and finally upgrade to 1.0.2g, wanted to be able to on h2, but nginx did not start. Fortunately, Ali cloud has a snapshot function, otherwise really miserable. (For this reason it should not be the openssl lib and nginx mount, leading to nginx not restart, but do not know how to solve.)

Roll back to the most recent version, one by one test, once the upgrade openss, nginx will not restart. Things hit a dead end.

Again mad search, found an important tips:

If you are using a different environment can go https://www.openssl.org/source/ download openssl

1.0.2 version of the source, adding the --with-openssl = openssl extract the source directory nginx compile time.

Then download and unzip openss 1.0.2, behind the compilation parameters plus --with-openssl =/root/openssl1.0.2g, again compile nginx, find the version number is still 1.0.1e, silent, military brother (lnmp Author) the answer is given, this compilation only affects nginx, it does not affect the openssl version of the system, reconfigure the conf file, restart nginx, finally prompted spend http2.

Happy ~ ha ha

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/lnmp-upgrade-nginx-support-http2.htm