Last update at :2024-03-20,Edit by888u
Many hosts on this site use LNMP scripts to build and manage the host network environment. Today I will share with you how to use LNMP scripts to upgrade MySQL, PHP, and Nginx on the host to the specified version or the latest version.
1. Introduction and installation of LNMP
LNMP is a management script for building and maintaining Nginx, MySQL, and PHP in a Linux environment. The script is updated once a year and is very stable. Basically, all VPS hosts on the market can be installed successfully. It is still very easy to use. There are many on this site. Hosts use LNMP scripts to build and manage the host network environment.
Some tutorials on LNMP have also been shared on the site before. You can refer to them:
- "One-click installation of LNMP environment on Linux, supporting CentOS/Ubuntu/Debian"
- "LNMP Upgrade Tutorial: How to update to the latest version of LNMP"
- "LNMP adds a website with one click: configure domain name + create new MySQL + configure https certificate"
In the installation directory of the LNMP script (/root/lnmp), there is an upgrade.sh file. This file is specially used to manage software upgrades.
2. Nginx upgrade method
Upgrade Nginx command:
./upgrade.sh nginxEnter the version number as prompted and press Enter (visit http://nginx.org/en/download.html to find the latest version number and previous version numbers of nginx. For example: 1.14.2), press Enter again to confirm You can start upgrading Nginx.
3. MySQL upgrade method
Upgrade MySQL command:
./upgrade.sh mysqlYou need to enter the MySQL root password for verification first. If the verification fails, you will not be able to upgrade. After passing the verification, you can go to http://dev.mysql.com/downloads/mysql/ to get the MySQL version number, enter it and press Enter to confirm. .
4. PHP upgrade method
Upgrade PHP command:
./upgrade.sh phpGo to http://www.php.net/downloads.php to get the version number, enter the version number, and press Enter again to confirm to start the upgrade.
Recommended site searches: US vps hosting, vps server rental, US unlimited content hosting, domain name registration query, virtual host rental, free cloud hosting, registration website, query domain name, registration-free jsp space, telecommunications server rental,
p>
发表评论