该文章下的文件只适合用于宝塔PHP7.4,其它版本不要用。文章源自天选之人网-http://tianxuanzhiren.com/11434/
文章源自天选之人网-http://tianxuanzhiren.com/11434/
1、下载 unix PHP7.4 Swoole Loader扩展文件。文章源自天选之人网-http://tianxuanzhiren.com/11434/
2 、安装Swoole Loader。文章源自天选之人网-http://tianxuanzhiren.com/11434/
将刚才下载的Swoole Loader扩展文件(swoole_loader74.so)上传到当前PHP的扩展安装目录中,在宝塔文件中找到以下目录路径:【/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902】。文章源自天选之人网-http://tianxuanzhiren.com/11434/
3、修改php.ini配置文章源自天选之人网-http://tianxuanzhiren.com/11434/
编辑此PHP配置文件:/www/server/php/74/etc/php.ini文章源自天选之人网-http://tianxuanzhiren.com/11434/
在此文件底部结尾处加入如下配置并且保存 :extension=swoole_loader74.so文章源自天选之人网-http://tianxuanzhiren.com/11434/
注意:需要名称和刚才上传到当前PHP的扩展安装目录中的文件名一致。文章源自天选之人网-http://tianxuanzhiren.com/11434/
文章源自天选之人网-http://tianxuanzhiren.com/11434/
文章源自天选之人网-http://tianxuanzhiren.com/11434/
文章源自天选之人网-http://tianxuanzhiren.com/11434/
4、以上步骤全部做好后,在宝塔面板里重启PHP或者重启服务器就好了。文章源自天选之人网-http://tianxuanzhiren.com/11434/

评论