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 compile and install redis in linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article shows you how to compile and install redis in linux. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

First of all, of course, download and decompress, or go to the official website to download the latest stable version, since we do the technology, of course, we have to choose the latest stable version, the development version is unstable, we will choose the latest stable version.

Wget http://download.redis.io/releases/redis-5.0.5.tar.gztar-xzvf redis-5.0.5.tar.gzmv redis-5.0.5.tar.gz / home/env/redis / / move to the path you want to install

After entering the directory, you can make.

test

After cd src, the. / redis-server display interface can be used.

Install the php extension

Http://pecl.php.net/package/redis chooses the corresponding version to download

Configure will appear after decompression / home/env/php73/bin/phpize

Then execute. / configure-- with-php-config=/home/env/php73/bin/php-config

The so file path will appear after make & & make install. If you are interested, you can check it.

Write within a php.ini file

Extension = redis.so

Save and exit, enter php-m to view the expansion

/ / batch deletion of key prefixed with test0 is used online with caution, if the amount is too large, it will cause blocking.

. / redis-cli keys test0* | xargs. / redis-cli del

The above is how to compile and install redis in linux. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow 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

Internet Technology

Wechat

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

12
Report