Install the swoole extension from source

 Ready to work

    1) Copy the link in git in www.swoole.com

      

   

    2) Before installation, you need to install autoconfig and gcc dependencies

Steps:

1) yum install git 

2) git clone https://gitee.com/swoole/swoole.git  (copied link)

3) cd swoole

4) /usr/local/php/bin/phpize   使用phpize

   

   Generate a configure file

 

5) ./configure  --with-php-config=/usr/local/php/bin/php-config

  --with-php-config = (install to that php environment)

6) make

7) make install

8) cd

/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/

9) ll

10)  You can see the swoole.so extension


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324427479&siteId=291194637