Quick configuration php7 + swoole + redis

install lnmp

# wget http://soft.vpser.net/lnmp/lnmp1.4.tar.gz
# tar zxvf lnmp1.4.tar.gz
# cd lnmp1.4
# ./install.sh

Install redis extension

# pecl install igbinary && pecl install redis

swoole installation preparation

install http2

# wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2
# tar -jxvf nghttp2-1.30.0.tar.bz2
# cd nghttp2-1.30.0
# ./configure
# make
# make install

Install postgresql

# yum install -y postgresql-devel

Install hiredis

# wget https://codeload.github.com/redis/hiredis/tar.gz/v0.13.3
# tar -zxvf v0.13.3
# cd hiredis-0.13.3/
# make -j
# make install
# ldconfig

install swoole

# pecl install swoole

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325321636&siteId=291194637