微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ubuntu install php swoole

1: 安装环境依赖:

2:下载swoole-4.4.3

wget http://pecl.PHP.net/get/swoole-4.4.3.tgz

download to current location: swoole-4.4.3.tgz

3: 解压:

tar xf swoole-4.4.3.tgz

4: go to swoole root directory + run PHPize

cd swoole-4.4.3

/usr/bin/PHPize

display your version number: 

5: 设置安装参数: full list of config setting (https://wiki.swoole.com/#/environment)

./configure --enable-openssl --enable-sockets --enable-http2 --with-PHP-config=/usr/bin/PHP-config

6: make 进行编译,make install 进行安装

make && make install

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐