ubuntu16.04 swoole 安装

本文提供了一种详细的Swoole扩展安装流程,包括下载源文件、安装基础环境及使用pecl安装Swoole等步骤,并针对不同配置进行了说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编译安装:
1 下载源文件
下载地址:https://git.oschina.net/swoole/swoole/tree/v2.0.5
2 上传解压缩
unzip 解压基础环境
3 安装基础环境
apt-get install nginx php php-dev mysql-server -y
4 安装扩展swoole扩展库
apt-get install nghttp2
5 进行扩展安装
phpize
./configure –enable-swoole-debug –enable-sockets –enable-openssl –with-openssl-dir=/usr/include/openssl –enable-http2 –enable-async-redis –enable-ringbuffer。

当前支持的:
./configure –enable-swoole-debug –enable-openssl –with-openssl-dir=/usr/include/openssl –enable-async-redis –enable-ringbuffer

pecl 安装
pecl install swoole
默认安装是的 php 1.9.9 版本。

简化一下:
apt-get install nginx php php-dev mysql-server nghttp2 -y
pecl install swoole

就可以安装完成了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值