This article is a mirror article of machine translation, please click here to jump to the original article.

View: 6615|Reply: 3

Install the Redis extension based on Docker php:5.6.40-fpm image

[Copy link]
Posted on 11/27/2021 8:24:02 PM | | | |
Because the Discuz program uses the Redis cache, the program is written in php, and if you want to use php to call the Redis service, you need to install the redis extension.

Review:

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

Install the redis extension under php 5.5.7 under CentOS
https://www.itsvse.com/thread-7200-1-1.html
Start an application that mirrors php:5.6.40-fpm with the following command:

aboutPHP 7.0.0 or later, you can install it directly through the following command:

Reference:The hyperlink login is visible.



Since the image I am using is PHP 5.6.40, I need to install it manually, which is more troublesome.

First, log in to the Discuz background, and you can see that the redis extension is not installed by default, as shown in the figure below:



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

Just run the following commands:

Required after installation is completeRestart the Docker app, and then enter the container to view the module through the php -m command, as shown in the figure below:



View it via phpinfo(), as shown below:



Check the redis support again through the Discuz backend, as shown in the figure below:



(End)





Previous:Install the GD extension based on the Docker php:5.6.40-fpm image
Next:Linux tests LDAP connectivity using the Curl command
 Landlord| Posted on 11/29/2021 9:54:10 PM |
The hyperlink login is visible.
4.3.0 is the last version of PHP5
The hyperlink login is visible.

To view the PHP Extended RPM status:The hyperlink login is visible.



 Landlord| Posted on 11/29/2021 10:02:18 PM |
Quickly install the Redis extension with commands

 Landlord| Posted on 11/29/2021 10:07:23 PM |
dockerfile reference:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com