Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report