以swoole为例,重新编译swoole
1.进入swoole源码目录:cd /swoole
2.重新编译:
./configure --with-php-config=/usr/local/php/bin/php-config --enable-async-redismake cleanmake -jmake install
3.通过 php -m 查看swoole,通过 php --ri swoole 查看是否新增async_redis