In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to integrate Linux phpredis, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Phpredis
Download address:
Https://github.com/nicolasff/phpredis
Download using git clone
Compilation and installation
1. First download the installation package of phpredis:
[root@localhost php] # git clone https://github.com/phpredis/phpredis.git
The figure below is as follows
2. Use phpize to generate configure files:
[root@localhost php] # cd phpredis/
[root@localhost phpredis] # find /-name "phpize"
/ usr/local/php/bin/phpize
/ soft/php-5.4.33/scripts/phpize
[root@localhost phpredis] # / usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
[root@localhost phpredis] #
As shown below:
3. Compile and install
[root@localhost php] # find /-name "php-config"
/ usr/local/php/bin/php-config
/ soft/php-5.4.33/scripts/php-config
[root@localhost php] #. / configure-with-php-config=/usr/local/php/bin/php-config
[root@localhost php] # make & & make install & & echo OK
As shown below:
(a) compiling drawings:
B. Installation drawing:
C. Installation completion diagram:
When I saw Build complete. This diagram proves that you have completed the installation; the generated redis.so file directory is: / usr/local/php/lib/php/extensions/no-debug-zts-20100525/
Configuration
Note: the installation and integration of Apache+Php will not be introduced here. If you are interested, please steadily go to: http://zlyang.blog.51cto.com/1196234/1784460
Only Php+Redis integration is done here.
Modify the php.ini file:
Add a sentence to php.ini:
Extension=/usr/local/php/lib/php/extensions/no-debug-zts-20100525/redis.so
As shown in the figure:
Restart Apache:
[root@localhost phpredis] # / usr/local/apache2/bin/apachectl restart
View phpinfo information:
Thank you for reading this article carefully. I hope the article "how to integrate Linux into phpredis" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.