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