fastadmin php 5.6 一键生成api文档失败

执行命令 $ 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!
 

猜你喜欢

转载自blog.csdn.net/u014314303/article/details/81287629