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

Release: 2020-04-01 09:30:15
forward
2650 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

Modify the specified version

Redis_Stable_Ver='redis-5.0.5'
PHPRedis_Ver='redis-4.0.2'
Copy after login

Then execute it

./addons.sh
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php redis connection problem
From 1970-01-01 08:00:00
0
0
0
About a small error in the redis manual
From 1970-01-01 08:00:00
0
0
0
python2.7 - django cannot connect to redis
From 1970-01-01 08:00:00
0
0
0
I can't connect to redis using php
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template