下载swoole地址: https://pan.baidu.com/s/1_N3RiFtT3iHLA5xt6oElqA 下载后解压 tar -zxvf ...... 执行PHPize(去PHP的安装目录执行这个) 如果报以下错误: Cannot find config.m4. Make sure that you run '/srv/PHP/bin/PHPize' in the top level source directory of the module 解决方案: #cd /usr/local/src/PHP-5.5.15/ext/openssl #cp ./config0.m4 ./config.m4 安装swoole: 1:进入解压后的swoole文件。执行下面命令 ./configure --with-PHP-config=/usr/local/PHP/bin/PHP-config make && make install 2:安装完成后,进入/etc/PHP目录下,打开PHP.ini文件,在其中加上如下一句: Having finished all that, go to the path '/etc/PHP' and edit PHP.ini. Add the following line to the file: extension=swoole.so 随后在终端中输入命令PHP -m查看扩展安装情况。如果在列出的扩展中看到了swoole,则说明安装成功
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。