Home  >  Article  >  PHP Framework  >  What should I do if redis swoole cannot be read?

What should I do if redis swoole cannot be read?

藏色散人
藏色散人Original
2020-04-09 10:08:082744browse

What should I do if redis swoole cannot be read?

redis swooleWhat should I do if it cannot be read?

Install swoole redis asynchronous hiredis swoole extension fails to load or does not display the problem solution

The current method is for reference only

Post the error

What should I do if redis swoole cannot be read?

I have been looking for it for a long time and tried online methods to no avail. Finally, after reading the question carefully, I thought it might be a hiredis path problem and finally solved it.

Solution:

Enter your installation package directory and execute the following

mkdir /usr/lib/hiredis
cp libhiredis.so /usr/lib/hiredis #将动态连接库libhiredis.so至/usr/lib/hiredis
mkdir /usr/include/hiredis
cp hiredis.h /usr/include/hiredis
echo '/usr/local/lib' >>/etc/ld.so.conf
ldconfig

The above is the detailed content of What should I do if redis swoole cannot be read?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:How to use swoole in phpNext article:How to use swoole in php