cd ~/Downloads
git clone https://gitee.com/swoole/swoole.git
cd swoole
/home/misswell/soft/php/bin/phpize
./configure --with-php-config=/home/misswell/soft/php/bin/php-config
make -j
make install

或加上异步 redis

cd ~/Downloads 
git clone https://gitee.com/swoole/swoole.git
cd swoole 
/home/misswell/soft/php/bin/phpize
./configure --with-php-config=/home/misswell/soft/php/bin/php-config --enable-async-redis
make clean
make -j
make install

返回信息

...
Installing shared extensions: /home/misswell/soft/php/lib/php/extensions/no-debug-non-zts-20170718/
Installing header files: /home/misswell/soft/php/include/php/

发表评论

电子邮件地址不会被公开。 必填项已用*标注