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 install the PHP7 Redis extension for CentOS7

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces CentOS7 how to install PHP7 Redis extension related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone will have a harvest after reading this CentOS7 how to install PHP7 Redis extension article, let's take a look at it.

installation extension

Note: The first time you use a non-root user, you don't succeed. Changing to root will succeed.

Download the extension package, find the matching version, wget download to the server

Extract and enter tar zxf redis-4.0.1.tgz, cd redis-4.0.1;

Find phpize and execute

Find php-config and configure it

make && make install, after compilation redis.io is already in/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/directory;

Modify php.ini to add extension=redis

Restart PHP

php -m

About "CentOS7 how to install PHP7 Redis extension" The content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of the knowledge of "CentOS7 how to install PHP7 Redis extension." If you still want to learn more knowledge, please 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

Internet Technology

Wechat

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

12
Report