進入目錄
cd /usr/local/src
下載
wget? https://pecl.php.net/get/swoole-2.1.1.tgz
解壓
tar -zxvf swoole-2.1.1.tgz
進入目錄
cd swoole-2.1.1
phpize
????注意:
? ? ????若執(zhí)行phpize后報錯
????????Cannot find autoconf. Please check your autoconf installation and the
????????$PHP_AUTOCONF environment variable. Then, rerun this script.
????????解決辦法:
? ??????????yum install m4
? ??????????yum install autoconf
解析
./configure
安裝
make && make install
ide提示工具安裝
安裝好之后呢静尼。如果你還需要對你想對你的編輯器捉貌,比如:phpstrom?對swoole的代碼提示功能,就可以下載幫助文件:https://github.com/swoole/ide-helper