Focus on cloud service provider activities
Notes on website operation and maintenance

LNMP One click Package Upgrade Nginx Version Method Collate LNMP1.1/LNMP1.2+Version

Lao Zuo was there the day before yesterday“ OneinStack One click Upgrade Nginx Latest/Custom Version Method "The article has sorted out the methods of upgrading the customized Nginx version with the common oneinstack script. At the same time, we also have a common LNMP script that can be upgraded with the built-in tool script, which is different in different versions and models. According to the official statement, the methods of 1.1 and earlier versions are different from those of 1.2 and later versions.

This is not for the sake of the integrity of the tutorial. Lao Zuo also purposely found the installation and testing of earlier versions. In this article, I will make a simple record of upgrading Nginx to LNMP1.1 and LNMP1.2+, and you can refer to it if you need it. However, in any case, we need to do a good job of data backup to prevent possible contingencies. I am not responsible for the integrity, only the records of my own tests.

First, upgrade the LNMP1.1 version to Nginx

./upgrade_nginx.sh

Enter the script installation package directory, and then execute the command.

 LNMP1.1 Upgrade Nginx

Enter the version to be upgraded according to the prompt, and then press Enter to automatically install it.

After the upgrade, we can restart NGINX and check whether the website data is normal.

Second, upgrade to LNMP1.2 and above

./upgrade.sh nginx

Later, the new script method is different. Similarly, we need to enter the current version folder. The customized folders are different for different versions, or find the upgrade script.

Then enter the version to be upgraded according to the prompt.

After the upgrade, the current version will be automatically detected. We'd better re detect it ourselves, restart NGINX, and check whether the website is normal.

To sum up, different versions of LNMP use different methods. In fact, they have the same general meaning and are relatively automatic.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » LNMP One click Package Upgrade Nginx Version Method Collate LNMP1.1/LNMP1.2+Version


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge