标签:clone 没有 依赖包 源码 eve php-fpm php ice restart
1安装依赖包
yum -y install gcc gcc-c++ autoconf automake
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
2安装Git
yum install git
3 安装clone swoole源码
git clone https://github.com/swoole/swoole-src.git
4解压编译
cd swoole-src
phpize
./configure
make && make install
5、修改php.ini配置文件(加在前面没有注释符的任意一行)
extension_dir = "/usr/lib64/php/modules/"
extension=swoole.so
6重启 php
systemctl restart nginx.service
systemctl restart php-fpm.service
标签:clone 没有 依赖包 源码 eve php-fpm php ice restart
原文地址:https://www.cnblogs.com/azzy/p/11748778.html