linux ph7.2. 安装swool扩展

1 下载最新版本的swool扩展 下载地址如下
   https://github.com/swoole/swoole-src/releases

2  安装swool扩展
   tar -zxvf swoole-src-4.4.5.tar.gz
   cd swoole-src-4.4.5
   /usr/local/php7.2/bin/phpize
   ./configure --with-php-config=/usr/local/php7.2/bin/php-config
   make
   make install

3 php 加载swool扩展
  编辑php.ini 
  extension=swoole.so
  
   重启php
  kill -USR2 `cat /usr/local/php7.2/var/run/php-fpm.pid`

  查看phpinfo() 是否正常加载了swool扩展
原文地址:https://www.cnblogs.com/jackspider/p/11453290.html