在Thinkphp6中已经使用如下命令安装好swoole扩展,在php --ri swoole,phpinfo()页面都可以查看到swoole的信息
composer require topthink/think-swoole
但是在运行
php think swoole
提示错误: Command "swoole" is not defined
遇到这个问题,如何解决?
1.运行
php think
查看Available commands列表中是否有swoole,如果没有,肯定是无法运行成功的。
OssStatic 将静态资源上传到oss上
build Build App Dirs
clear Clear runtime file
curd 一键curd命令服务
help Displays help for a command
list Lists commands
node 系统节点刷新服务
run PHP Built-in Server for ThinkPHP
version show thinkphp framework version
在项目中找到console.php文件,添加swoole
<?php
// +----------------------------------------------------------------------
// | 控制台配置
// +------------------------