ubuntu16.04 swoole 安装

来源:互联网 发布:seo网络推广专员 编辑:程序博客网 时间:2024/06/05 20:58

编译安装:
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

就可以安装完成了。

0 0
原创粉丝点击