进入目录
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
注意:
若执行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