- swoole下载
wget https://github.com/swoole/swoole-src/archive/v4.1.0.tar.gz
- 编译&安装
./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 #在最后一行添加