美文网首页
ubuntu18.06编译安装swoole

ubuntu18.06编译安装swoole

作者: 老王和坑坑 | 来源:发表于2018-07-21 12:13 被阅读0次

下载

git clone https://gitee.com/swoole/swoole.git

使用phpize创建configure

cd swoole
/usr/local/php/bin/phpize

编译安装

--with-php-config 指定php-config路径

./configure --with-php-config=/usr/local/php/bin/php-config
make && sudo make install

配置php支持swoole

#编辑配置文件
vi /usr/local/php/etc/php.ini 
#添加以下内容添加
extension=swoole.so

重启php-fpm

service php-fpm restart

相关文章

网友评论

      本文标题:ubuntu18.06编译安装swoole

      本文链接:https://www.haomeiwen.com/subject/vichmftx.html