架构师_程序员_码农网

Retrieve password
Register

QQ登录

Just one step to get started

Search
View:3517|Reply: 3
打印 上一主题 下一主题

Installing Redis extensions based on Docker php:5.6.40-fpm image

[copy link]
跳转到指定楼层
owner
发表于 2021-11-27 20:24:02| 看该作者回帖奖励|ReverseBrowse|Read Mode
Because Discuz program will use Redis cache, the program is written in php, if you want to use php to call Redis service, you need to install redis extension.

Review:

Installing the GD extension based on the Docker php:5.6.40-fpm image.
h ttps:// www.itsvse.com/thread-10175-1-1.html

Install the redis extension for php 5.5.7 on CentOS.
h ttps:// www.itsvse.com/thread-7200-1-1.html
Start a php:5.6.40-fpm mirrored application with the following command:

For PHP 7.0.0 or later, you can install it directly with the following command:

Reference: https: //pecl.php.net/package/redis



Since the mirror I'm using is php 5.6.40, I need to install it manually by myself, which is a bit more troublesome.

First of all, login to Discuz background, you can see that redis extension is not installed by default, as shown below:



Go inside the container application to install the redis extension with the following command:

Execute the following commands in turn:

After the installation is complete, you need to restart the docker application and then go inside the container to view the module using the php -m command, as shown below:



Viewed via phpinfo() as below:



Once again, check the redis support via Discuz background as below:



(End)





Previous: Install GD extensions based on Docker php:5.6.40-fpm image
Next article:Linux using Curl command to test LDAP connectivity
The code farmer network, only published in the practice process, encountered technical difficulties, do not mislead others.
sofabed
owner|发表于 2021-11-29 21:54:10| 看该作者
h ttps:// pecl.php.net/package/redis
4.3.0 is the last version of PHP5.
h ttps:// pecl.php.net/package/redis/4.3.0

Check PHP extension RPM status: https: //blog.remirepo.net/pages/PECL-extensions-RPM-status



The code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
ugg boots sale
ugg boots sale
楼主 | 发表于 2021-11-29 22:02:18| 看该作者
Quickly installing the redis extension via command

The code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
ugg boots sale
flooring
楼主 | 发表于 2021-11-29 22:07:23| 看该作者
The code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
You need to log in before you can post back Log in | Register

This version of the integral rules

DISCLAIMER:
All software, programming materials or articles released by the code farmer network is limited to study and research purposes; the above content shall not be used for commercial or illegal purposes, otherwise, all the consequences please user responsible. This site information from the network, copyright dispute has nothing to do with this site. You must completely remove the above content from your computer within 24 hours of downloading. If you like the program, please support the genuine software, buy registration and get better genuine service. If there is any infringement, please contact us by email to deal with it.

Mail To:help@itsvse.com

QQ| ( ICP备14021824号-2 )|Sitemap

GMT+8, 2024-9-19 03:39

Quick ReplyBack to topBack to list