pecl download swoole
解壓並進入目錄
tar -zxvf swoole-4.3.3.tar.gz && cd swoole-4.3.3
執行phpize生成configure可執行檔案
這裡的目錄一定是你要安裝swoole擴充套件對應的php版本的安裝目錄,如果存在多個php版本一定要注意這一點
/usr/local/cellar/php/7.2.11/bin/phpize
執行完後會在目錄下生成configure檔案
./configure
make && make install
最後在php.ini問價加上
extension=swoole.so
重啟php-fpm 執行以下命令
/usr/local/cellar/php/7.2.11/bin/php -m | grep swoole
swoole
如果出現swoole 表示安裝成功 php 安裝swoole擴充套件
2 解壓unzip swoole src master.zip 3 編譯發現沒有configure 使用phpize 生成 configure 進入到swoole 解壓後的目錄 cd usr local src swoole src master 執行phpize usr local php7 bi...
PHP安裝swoole擴充套件
個人伺服器進行swoole安裝 伺服器 centos 6.8版本 swoole手冊建議pecl安裝 pecl install swoole執行這個命令之後發現沒有pecl這個命令 所以只能進行pecl安裝 yum install php71w pear php71w develphp71w這個是因為...
php擴充套件swoole的安裝
前提條件 事先已經安裝好了php,版本建議在php7或是以上 2.解壓安裝 tar zxvf swoole src 4.2.9.tar.gz cd swoole src 4.2.9 phpize ubuntu 沒有安裝phpize可執行命令 sudo apt get install php dev來...