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.
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.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge