请下载兼容PHP7.x和非线程安全的Swoole Loader扩展
nginx环境
php7.2:https://compiler.swoole.com/static/loader3.1.0/swoole_loader72.so
php7.3:https://compiler.swoole.com/static/loader3.1.0/swoole_loader73.so
php7.4:https://compiler.swoole.com/static/loader3.1.0/swoole_loader74.so
php8.0:https://compiler.swoole.com/static/loader3.1.0/swoole_loader80.so
php8.1:https://compiler.swoole.com/static/loader3.1.0/swoole_loader81.so
Apache|IIS环境
php7.2:https://compiler.swoole.com/static/loader3.1.0/swoole_loader72_zts.so
php7.3:https://compiler.swoole.com/static/loader3.1.0/swoole_loader73_zts.so
php7.4:https://compiler.swoole.com/static/loader3.1.0/swoole_loader74_zts.so
php8.0:https://compiler.swoole.com/static/loader3.1.0/swoole_loader80_zts.so
php8.1:https://compiler.swoole.com/static/loader3.1.0/swoole_loader81_zts.so
windows环境
php7.2:https://compiler.swoole.com/static/loader3.1.0/swoole_loader72_zts_x64.dll
php7.3:https://compiler.swoole.com/static/loader3.1.0/swoole_loader73_zts_x64.dll
php7.4:https://compiler.swoole.com/static/loader3.1.0/swoole_loader74_zts_x64.dll
php8.0:https://compiler.swoole.com/static/loader3.1.0/swoole_loader80_zts_x64.dll
php8.1:https://compiler.swoole.com/static/loader3.1.0/swoole_loader81_zts_x64.dll
将刚才下载的Swoole Loader扩展文件(.dll或swoole_loader.so)上传到当前PHP的扩展安装目录
3 – 修改php.ini配置(如已修改配置,请忽略此步骤,不必重复添加)
编辑此PHP配置文件:/www/server/php/xxx/etc/php.ini,(xxx为对应你的php版本)在此文件底部结尾处加入如下配置
extension=swoole_loader.so |
注意:需要名称和刚才上传到当前PHP的扩展安装目录中的文件名一致
重启或重载PHP配置