Liunx-php7安裝swoole擴展

Liunx-php7安裝swoole擴展

標籤(空格分隔): phpphp

下載包

https://github.com/swoole/swoole-src/releases

安裝過程

直接wget也行直接下載到本機

1. wget   https://github.com/swoole/swoole-src/archive/v4.2.12.tar.gz

2. cd swoole-src-4.2.12

3. php phpize | 若是ubunut沒有安裝phpize 則執行:sudo apt-get install php-dev

4. ./configure --with-php-config=/usr/local/php/bin/php-config

5. make && make install

6. vim php.ini  最後一行添加:extension=swoole

7. phpinfo() 查看

相關文章
相關標籤/搜索