1.下载swoole官网
https://wiki.swoole.com/#/environment
3.运行PHPize
4.编译
./configure --with-PHP-config=/usr/local/PHP/bin/PHP-config
5.遇到问题的根源是缺少必要的C++库。运行如下命令解决:
yum install glibc-headers
yum install gcc-c++
6.make一下
make
make test
make install
到此安装结束
启动文件夹
cd /root/swoole/examples/server
连接swoole
telnet 127.0.0.1 9501