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 )
##Add swoole to the configuration filesudo vi /etc/php/7.2/cli/php.ini 添加 extension=/usr/lib/php/20170718/swoole.so
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!