Home >Database >Redis >How to upgrade phpredis and redis-server versions in lnmp environment

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

尚
forward
2020-04-01 09:30:152585browse

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

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.

Recommended: redis introductory tutorial

A very important point is the corresponding relationship between the phpredis extension and redis-server, and those features are supported.

First install

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

and then it will be installed automatically through the script.

If you want to specify the 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 it already exists and will not be upgraded. The specific operations are as follows:

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

Modify the specified version

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

Then execute it

./addons.sh

Related recommendations:

mysql video tutorial: https://www.php.cn/course/list/51.html

The above is the detailed content of How to upgrade phpredis and redis-server versions in lnmp environment. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete