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

What should I do if redis swoole cannot be read?

藏色散人
Release: 2020-04-09 10:08:08
Original
2871 people have browsed it

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
Copy after login

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!

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