1. 程式人生 > >fastadmin php 5.6 一鍵生成api文件失敗

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!