swoole编译安装

  1. swoole下载
wget https://github.com/swoole/swoole-src/archive/v4.1.0.tar.gz
  1. 编译&安装
./configure \
--with-php-config=/usr/local/php/bin/php-config \
--enable-openssl  \
--enable-http2  \
--enable-async-redis \
--enable-sockets \
--enable-swoole-debug \
--enable-mysqlnd
make && make install


nghttp2下载
https://github.com/nghttp2/nghttp2/releases/download/v1.33.0/nghttp2-1.33.0.tar.gz
编译&安装

./configure
make && make install

hiredis下载&安装

wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz
mv v0.13.3.tar.gz hiredis-0.13.3.tar.gz
tar xzvf hiredis-0.13.3.tar.gz
cd hiredis-0.13.3
make && make install
vi ~/.bash_profile  #用vi打开当前用户的bash_profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib  #在最后一行添加
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容