Get the App
SLTechnology News&Howtos  ›  Database  › 

How to upgrade phpredis and redis-server versions in lnmp environment

Shulou Source: shulou.com Published: 2022-06-01 21:35:49 11月17日 Update

With the development of the Internet, more and more people enter the IT industry, so how to upgrade phpredis and redis-server versions in lnmp environment? You know what? In order to let everyone know more, Xiaobian summarized the following contents for everyone, and looked down together.

lnmp supports installing redis using the command line. Usually the specified version of lnmp5 is version 4, but the specified version of redis can be installed.

It is important to note that the phpredis extension and the redis-server mapping are supported.

first install

cd lnmp1.5-full/./ addons.sh

It is then installed automatically via scripts.

If you want to specify a version, you can modify it by modifying the version file version.sh.

cd include/vim version.sh

If we want to upgrade the version, in addition to modifying the version file version.sh, we also need to rename the original bin file, otherwise it will prompt that there is already no upgrade. The specific operation is as follows:

mv /usr/local/redis/bin/redis-server /usr/local/redis/bin/redis-server.bak

Modify a specified version

Redis_Stable_Ver='redis-5.0.5'PHPRedis_Ver='redis-4.0.2'

And then you can just execute it

./ addons.sh

The above is a brief introduction to how to upgrade phpredis and redis-server versions in lnmp environment, of course, the details of the use of the above differences have to be used by everyone to understand. If you want to know more, welcome to pay attention to the industry information channel!

Tags: Version upgrade file environment that is more industry support different brief important Internet content can be passed commands situations features see scripts information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Apple Xiaomi macOS vpn