How to install redis extension on linux

藏色散人
Release: 2019-08-08 10:26:54
Original
3368 people have browsed it

How to install redis extension on linux

How to install redis extension on linux?

Related recommendations: [Linux video tutorial]

How to install the redis extension on Linux:

1. First download the php-redis extension package

How to install redis extension on linux

2. Unzip and unpack and enter the directory. You can see the following:

How to install redis extension on linux

3. Execute the phpize command in the php installation directory in this directory (if you don’t know the phpize path, you can use whereis phpize to query)

How to install redis extension on linux

4. At this time, there will be more A configure file

How to install redis extension on linux

5. Now it can be configured. --with-php-config tells the extension where to install it and automatically configures the compiler for us (once executed If an error is reported, it is possible that autoconf is not installed. Just execute the following yum install autoconf)

How to install redis extension on linux

If an error is reported

How to install redis extension on linux

Install GCC can be yum install gcc -y

6, compile make

How to install redis extension on linux

How to install redis extension on linux

##7, After the compilation is passed, execute make install

How to install redis extension on linux

After installation, you will be prompted for the directory where the extension is placed. Enter the directory and you will find the redis.so extension

How to install redis extension on linux

9. Modify the php.ini file and add the following information

How to install redis extension on linux

Or enter the /etc/php.d directory to create the redis.ini file

How to install redis extension on linux

10. After saving and exiting, restart the server. Check the phpinfo() information

How to install redis extension on linux

#The loading is successful.

For more Redis related knowledge, please visit the

Redis usage tutorial column!

The above is the detailed content of How to install redis extension on linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template