Swoole

Don"t use swoole, recently took a thinkphp3.2 framework project, which is to use swoole.
but after I installed the swolle extension on nginx, I kept reporting errors. Through phpinfo and php-m, I can confirm that swolle has been installed successfully

but var_dump (extension_loaded ("swoole_loader"));
) results in false.. What is the situation

clipboard.png

,extension_loaded("swoole_loader") ,cli,,?~~
1 PHPinfo 2php -m
clipboard.png

clipboard.png

Php
Mar.25,2021

< H1 > first < / H1 > The swolle extension is installed on

nginx, which is not true. It should be installed for PHP

. < H1 > followed by < / H1 >

to determine whether swoole is loaded or not, you should write extension_loaded ('swoole')


swoole is another service that is started using cli mode. The nginx service with you is useless, so it can't be triggered by browser access, let alone your thinkphp3.2 framework.

in addition, your problem is not described clearly enough. What function do you want to use swoole to accomplish? Can you paste the code of the Home controller?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3abd6-345ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3abd6-345ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?