yum install php-devel php-pear
wget https://github.com/swoole/swoole-src/archive/swoole-1.7.6-stable.tar.gz
tar -zxvf swoole-1.7.6-stable.tar.gz
cd swoole-src-swoole-1.7.6-stable
phpize
yum install pcre-devel
./configure --with-included-apr
make
make test
打开php.ini添加extension="/swoole-src-swoole-1.7.6-stable/modules/swoole.so"
/etc/init.d/php-fpm restart
php -m(可以看见swoole)
service httpd restart
在网页上打开phpinfo,可以搜索到swoole
【Swoole】安装swoole
最新推荐文章于 2022-06-11 16:30:01 发布