LNMP script upgrade MySQL, PHP, Nginx tutorial

888u

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 nginx

Enter 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 mysql

You 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 php

Go 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>

LNMP script upgrade MySQL, PHP, Nginx tutorial

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