修改php.ini
文件添加 extension=swoole
php.ini文件目录:
/usr/local/php/lib

php -m
查看扩展情况

到swool的安装包的examples
目录下的server
目录下运行echo.php
如目录为:
/root/swoole/examples/server
php echo.php
查看echo.php
所启动的端口号9501
netstat -anp | grep 9501

网友评论