OneinStack's one-click method to upgrade the latest/customized version of Nginx

888u

Last update at :2024-06-14,Edit by888u

I saw an article a few days ago that mentioned that earlier versions of Nginx had security vulnerabilities. It was recommended that the version be upgraded to 1.14.1 stable or 1.15.6 mainline version. Among them, the OneinStack one-click installation package that we may use more commonly provides its own upgrade tool. Snail has also asked the script author to provide the version required for upgrade. No, Snail found an earlier version of Nginx environment to upgrade and then took screenshots to demonstrate. If there are netizens who need to upgrade, they can refer to the upgrade.

Snail is not sure whether this security issue really affects earlier versions of Nginx, but if it is really necessary, upgrade it to ensure safety. If we have friends who are preparing to upgrade, we must back up the existing environment snapshot or local backup of data to ensure that there are possible problems.

First, upgrade the Nginx script

This is only for upgrading Nginx to the Oneinstack environment. For Brother Jun’s LNMP snail, we will find another environment later to see how to upgrade.

./upgrade.sh

Enter the oninstack directory, and then execute the upgrade script. After seeing the picture above, select to upgrade Nginx and enter the version number that needs to be upgraded. Download the latest version directly from the Nginx official website.

Second, check whether to upgrade

After the upgrade is completed, check whether it is the version we upgraded.

In summary, we can use this method to upgrade to a customized version or directly enter the version number according to the latest official version. After the upgrade is completed, restart Nginx to take effect, and check whether the data is complete.

Recommended site searches: domain name registration service website, best US server, ip address, mainland China registration-free host, Wanwang domain name registration official website, icp website registration, la domain name, virtual host 0 yuan purchase, asp virtual host, Foreign website space,

OneinStack's one-click method to upgrade the latest/customized version of Nginx

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码