linux系统安装swoole

1.下载swoole官网

https://wiki.swoole.com/#/environment

2.解压zip
unzip swoole文件名称

3.运行PHPize

/usr/local/PHP/bin/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
PHP server.PHP

连接swoole
telnet 127.0.0.1 9501

相关文章

1.SW的HttpServerHttpServer的本质仍然是swoole_server,其协...
1、Swoole依赖安装hiredissudowgethttps://github.comedis/h...
直接安装会提示找不到openssl/ssl.h文件即便通过Brew安装了O...
1.安装依赖yum install -y php php-pear php-devel ht...
php
下载swoole地址:https://pan.baidu.com/s/1_N3RiFtT3iHLA5x...
昨晚我躺在床上,百无聊赖地翻阅 阿兰·德波顿《身份的焦虑...