看了下安装脚本,手动安装上了
下载后4.8.12安装包
- tar -zxvf swoole-4.8.12.tgz
- cd swoole-4.8.12/
- /www/server/php/74/bin/phpize
- ./configure --with-php-config=/www/server/php/74/bin/php-config --enable-openssl --enable-sockets
- make && make install
- echo -e "\n[swoole]\nextension = swoole.so\nswoole.use_shortname = off\n" >>/www/server/php/74/etc/php.ini
复制代码 |