php编译安装swoole模块
1.下载swoole
1 wget https://github.com/swoole/swoole-src/archive/v1.9.3-stable.tar.gz
2.安装
1 tar -xf v1.9.3-stable 2 3 cd ./swoole-src-1.9.3-stable/ 4 5 /opt/app/php5/bin/phpize 6 7 ./configure --with-php-config=/opt/app/php5/bin/php-config 8 9 make && make install
3.添加配置
1 vi /opt/app/php5/etc/php.ini 2 3 ... 4 extension=swoole.so 5 ...
4.重启php服务
1 service php-fpm restart
5.查看模块是否添加成功
1 php -m