php編譯安裝swoole模塊

1.下載swoolephp

1 wget https://github.com/swoole/swoole-src/archive/v1.9.3-stable.tar.gz

 

2.安裝git

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.添加配置github

1 vi /opt/app/php5/etc/php.ini
2 
3 ...
4 extension=swoole.so
5 ...

 

 

4.重啓php服務swoole

1 service php-fpm restart

 

5.查看模塊是否添加成功app

1 php -m
相關文章
相關標籤/搜索