In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "php how to install redis extension", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "php how to install redis extension" this article.
Download the expansion package
Command
Cd / usr/local/src/ wget https://pecl.php.net/get/redis-4.0.1.tgz
Running
2. Decompress the installation package
Command
Tar-zxvf redis-4.0.1.tgz
Running
III. Compilation
Command
Cd redis-4.0.1phpize
Running
IV. Configuration
Command
Whereis php-config. / configure-- with-php-config=/usr/local/php/bin/php-config
Running
V. make compilation
Command
Make & & make install
Running
VI. Installation location
Check the location where the extension is installed after compilation, and the location of the extension will be displayed at the last location of the compilation. let's check to see if the extension already has a command.
Location where the ll extension is installed
Running
7. Query php configuration file location
Command
# check the location of php.ini php-r 'phpinfo ();' | grep 'php.ini' # Open the php.ini file vim / usr/local/php/etc/php.ini
Running
Add redis extensions
Add the redis extension and restart the php service
Command
# add the following code extension=redis # restart the php service service php-fpm restart
Running
Whether the installation is successful or not
If you can see the word redis, the installation is successful, and if not, the command fails.
Php-m
Running
These are all the contents of the article "how to install redis extensions in php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.