执行命令 $ php think api --force=true
[think\Exception]
Please make sure opcache already enabled, Get help:https://forum.fastadmin.
net/d/1321
原因:缺少php_opcache.dll
在php/ext中发现有php_opcache.dll
然后在php.ini 中加入
zend_extension=php_opcache.dll
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=528
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=1
opcache.fast_shutdown=1
重启apache
再次执行命令
$ php think api --force=true
Build Successed!