693579551 发表于 2018-12-16 14:03:21

php的swoole插件安装

下载:https://github.com//swoole/swoole-src/archive/swoole-1.8.5-stable.tar.gz安装
/wdzj/lnmp/php5.6.11/bin/phpize
tar xf swoole-src-swoole-1.8.5-stable.tar.gz
cd swoole-src-swoole-1.8.5-stable
./configure --enable-sockets --with-php-config=/wdzj/lnmp/php5.6.11/bin/php-config --enable-swoole-debug --enable-async-mysql
make && make install
ll /wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226
修改PHP.ini
extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/swoole.so
#####################
echo "extension=/wdzj/lnmp/php5.6.11/lib/php/extensions/no-debug-non-zts-20131226/swoole.so" >>/wdzj/lnmp/php5.6.11/lib/php.ini
Make sure that you run '/wdzj/source/php-5.3.28/scripts/phpize' in the top level source directory of the module来源:http://www.tuicool.com/articles/2MrE7v  




linuxphp 发表于 2019-7-16 11:47:00

好资源,必须支持楼主。喜欢用sudo pecl install swoole
页: [1]
查看完整版本: php的swoole插件安装