当前位置: 首页 > 后端技术 > PHP

Swoole学习第一天编译篇

时间:2023-03-29 18:22:08 PHP

准备确认机器上安装了php、phpize、make进入swoole官网发布页面,下载最新的稳定版发布包开始工作$tarxfswoole。tar.gz$cdswoole$./configure$make-j6$makeinstall修改PHP配置项,打开swoole.soExtendphp--ini获取配置文件信息检测$php--riswoole#样例输出swooleSwoole=>enabledAuthor=>Swoole团队Version=>4.4.7Built=>2019年9月29日16:10:02coroutine=>enabledkqueue=>enabledrwlock=>enabledhttp2=>enabledpcre=>enabledzlib=>enabledbrotli=>enabledasync_redis=>enabledDirective=>LocalValue=>MasterValueswoole。enable_coroutine=>On=>Onswoole.enable_library=>On=>Onswoole.enable_preemptive_scheduler=>Off=>Offswoole.display_errors=>On=>Onswoole.use_shortname=>On=>Onswoole.unixsock_buffer_size=>262144=>262144