ubuntu16.04 swoole 安装

阅读 77

2023-03-02


编译安装:
1 下载源文件
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

就可以安装完成了。


精彩评论(0)

0 0 举报