swoole源码安装
1. 下载swoole git clone https://github.com/swoole/swoole-src.git
2.下载完之后 在swoole目录生成configure 通过php/bin/phpize 生成 /mnt/h/swoole/php7.1.9/php/bin/phpize 回车生成
3. 生成configure 后 执行 ./configure --with-php-config=/mnt/h/swoole/php7.1.9/php/bin/php-config 路径为要把swoole编译为php扩展的 php/bin/php-config
4. make install 安装完成 显示 swoole.so 文件路径
5.在php.ini 写入swoole扩展 extension=swoole.so 保存后 sphp7 - m 查看php扩展是否生效
6.运行swoole-src 的example/server/ 下的echo.php 启动一个swoole服务 后 查看端口 9501 是否已经连接

浙公网安备 33010602011771号