请告诉我我做错了什么,为什么不运行:
3 * * * * /usr/bin/php -q /var/www/CRON/hourly.php > /var/www/logPHP.log
Run Code Online (Sandbox Code Playgroud)
logPHP.log已制作,但在运行时为空。如果我将 3 替换为*,则脚本开始运行但永远不会结束。
当我在终端中复制它时:
/usr/bin/php -q /var/www/CRON/hourly.php > /var/www/logPHP.log
Run Code Online (Sandbox Code Playgroud)
一切都按照预期顺利进行。
Ubuntu 10.04 LTS,
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch (cli)
Run Code Online (Sandbox Code Playgroud) 我的 PHP OPcache 达到 100% 内存使用率
General info
Zend OPcache 7.0.4-dev
PHP 5.5.23-1+deb.sury.org~trusty+2
Server Software nginx/1.6.2
Run Code Online (Sandbox Code Playgroud)
这是我的缓存设置:
zend_extension=opcache.so
opcache.memory_consumption=1024
opcache.max_accelerated_files=50000
opcache.revalidate_freq=180
opcache.consistency_checks=0
Run Code Online (Sandbox Code Playgroud)
还有一些关于缓存命中的更多信息:
total memory: 1024.000MB
used memory: 1010.398MB
free memory: 35.086KB
wasted memory: 13.568MB (1.32%)
number of cached files: 10,724
number of hits: 9,576,431
number of misses: 21,450
blacklist misses: 0
number of cached keys: 12,971
max cached keys: 65,407
Run Code Online (Sandbox Code Playgroud)

我应该担心 100% 内存使用率吗?有人可以用外行术语解释 OPcache 内存使用吗?
服务器有 8GB 内存(Linode)