Home  >  Article  >  PHP Framework  >  How to run swoole in php

How to run swoole in php

(*-*)浩
(*-*)浩Original
2019-12-05 13:51:014757browse

How to run swoole in php

If there is no response when typing php --ri swoole on the command line, it means that the swoole installation was not successful. Because SWOOLE is running in the CLI mode, you cannot directly see if there is (Recommended Learning: SWOOLE Video Tutorials )

How to run swoole in php

##Add swoole to the configuration file

How to run swoole in php

sudo vi   /etc/php/7.2/cli/php.ini 
添加
extension=/usr/lib/php/20170718/swoole.so

In addition, I am also used to adding configuration to the php.ini file corresponding to phpinfo. After adding the configuration to the /etc/php/7.2/fpm/php.ini file, you will see in phpinfo that the extension has been installed successfully

The above is the detailed content of How to run swoole in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn