Home > PHP Framework > Swoole > body text

How to run swoole in php

(*-*)浩
Release: 2019-12-05 13:51:01
Original
4891 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template