Git Product home page Git Product logo

Comments (7)

hhxsv5 avatar hhxsv5 commented on May 4, 2024

执行下面的命令 确认zlib是否启用成功

php --ri swoole|grep zlib

如果成功应该输出"zlib => enabled"

from laravel-s.

tanteng avatar tanteng commented on May 4, 2024

php -m 有 zlib 模块
但是 php --ri swoole|grep zlib 没有输出

from laravel-s.

hhxsv5 avatar hhxsv5 commented on May 4, 2024

用ldconfig -p|grep libz确定下系统有没有libz
贴下系统版本,swoole版本。

from laravel-s.

tanteng avatar tanteng commented on May 4, 2024

确实没有 zlib 库,我使用的是 docker,在 dockerfile 加了安装命令,现在可以成功访问了。

RUN apt-get update && \ apt-get install -y libz-dev

from laravel-s.

tanteng avatar tanteng commented on May 4, 2024

另外还请教一个问题,使用 php artisan laravels start 启动了常驻进程后,需不需要配合 Supervisor 来监控

from laravel-s.

hhxsv5 avatar hhxsv5 commented on May 4, 2024

可以监管起来,不过Laravel需要非daemonize运行。

from laravel-s.

RoderickKennedy avatar RoderickKennedy commented on May 4, 2024

| PHP | 7.3.9 |
| Swoole | 4.4.12 |
现在的版本已经启用gzip, 而是转向引用http_compression
https://wiki.swoole.com/wiki/page/973.html,
php --ri swoole|grep zlib 可民正常打印出相应的版本信息的,这个扩展默认也是安装有的,zlib => 1.2.7
这个代码应该要修改的,是个版本兼容问题

from laravel-s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.