remi

 很简单呀,又不用自己编译。用 http://rpms.remirepo.net/ 这个 remi 的包,直接 yum install php-swoole 就完事了


安装remi包也很简单, yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 就可以了


centos7安装的时候,把环境都选上,挺好用的


vim /etc/yum.repos.d/remi-php70.repo 

改成1保存,然后系统就默认用php7了,基本不用自己编译的

原文地址:https://www.cnblogs.com/liuwenbohhh/p/5660265.html