安装swoole

yum update 服务器

yum install php php-pear php-devel httpd gcc

pear 执行安装包

devel 执行工具

httpd 安装apache服务器

gcc 执行编译

安装swoole

pecl install swoole 安装swoole

 

在php.ini中添加swoole 扩展

yum install nano  安装 nano

nano /etc/php.ini

查找extension  

添加 extension=swoole.so

保存退出

 

 ps -aux | grep socket.php  查找socket 进程

posted @ 2018-03-02 11:43  创行客  阅读(87)  评论(0编辑  收藏  举报