swoole 安裝

一、下載源碼  :wget -c https://github.com/swoole/swoole-src/archive/v2.0.6.tar.gz  //url地址本身去找,不一樣的swoole版本和php版本可能有差別php

 二、解壓 tar -zxvf ' *** , git

三、使用phpize來生成php編譯配置   github

四、./configure 來作編譯配置檢測     ///   這一步通常會提示出錯(Please use --with-php-config=PATH),  找到本身的php安裝位置 ./configure --with-php-config=/usr/local/php/bin/php-config  swoole

五、 make&&make install  編譯安裝url

六、extension=swoole.so  找到php配置文件 加上這句spa

相關文章
相關標籤/搜索