Closed LIngMax closed 1 month ago
./swoole-cli-v5.1.3-linux-x64 -r "ini_set('apc.enabled', 1);ini_set('apc.enable_cli', 1); print_r(apcu_cache_info());"
报错
Warning: apcu_cache_info(): No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in Command line code on line 1
我看了 有编译这个扩展的 ./swoole-cli-v5.1.3-linux-x64 -m
vi php.ini apc.enable_cli=1 ./swoole-cli-v5.1.3-linux-x64 -c php.ini
或者
./swoole-cli-v5.1.3-linux-x64 -d "apc.enable_cli=1" --ri apcu
./swoole-cli-v5.1.3-linux-x64 -r "ini_set('apc.enabled', 1);ini_set('apc.enable_cli', 1); print_r(apcu_cache_info());"
报错
Warning: apcu_cache_info(): No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in Command line code on line 1