Swoole 安装
1、Swoole依赖安装
hiredis
cd /usr/local/php/include/php/ext
sudo wget https://github.com/redis/hiredis/archive/v0.14.0.tar.gz
sudo tar xf v0.14.0.tar.gz
cd hiredis-0.14.0/
sudo make
sudo make install
sudo ldconfig
nghttp2
cd /usr/local/php/include/php/ext
sudo wget https://github.com/nghttp2/nghttp2/releases/download/v1.37.0/nghttp2-1.37.0.tar.gz
sudo tar xf nghttp2-1.37.0.tar.gz
cd nghttp2-1.37.0/
sudo ./configure
sudo make
sudo make install
2、Swoole安装
cd /usr/local/php/include/php/ext
sudo wget https://github.com/swoole/swoole-src/archive/v4.4.12.tar.gz
sudo tar xf v4.4.12.tar.gz
cd swoole-src-4.4.12/
sudo phpize
sudo ./configure \
--with-php-config=/usr/local/php/bin/php-config \
--enable-openssl \
--with-openssl-dir \
--enable-http2 \
--enable-sockets \
--enable-mysqlnd
sudo make clean
sudo make && sudo make install
本人博客所有文章,均为原创。部分文章中或引用相关资料,但均已著明来源出处。可随意转载、分享,但需加本文链接,以及版权说明。