Phpstudy installing the spool extension

Time:2021-8-27
  1. First, install phpstudy. You can go tohttp://lamp.phpstudy.netTo install, the whole process takes about 50-90 minutes. Look at your CPU. The better the CPU performance, the faster
  2. Then download the swoole extension download addresshttps://codeload.github.com/swoole/swoole-src/tar.gz/swoole-1.7.9-alpha
  3. Extract ittar -xvzf swoole-src-swoole-1.7.9-alpha.tar.gz
  4. cd swoole-src-swoole-1.7.9-alpha
  5. sudo vi /root/.bashrc
  6. Add in the last lineexport PATH=/phpstudy/server/php/bin:$PATH
  7. Save exit
  8. Run the following command on the command line to reload the variablessudo source /root/.bashrc
  9. Then execute the commandphpize
  10. Display results[email protected]:~/swoole-src-swoole-1.7.9-alpha# phpize
    Configuring for:
    PHP Api Version: 20100412
    Zend Module Api No: 20100525
    Zend Extension Api No: 220100525
  11. function./configure
  12. functionmake
  13. functionsudo make install
  14. thensudo vi /phpstudy/server/php/etc/php.ini
  15. stayextension=php-xxx.dllFront increaseextension=swoole.so
  16. Run commandsudo phpstudy restartRestart Apache to load PHP configuration
  17. Run commandphp -mCheck whether there is a swoole module
    ok