Articles of memcache

如何configurationnginx从RAM提供静态内容?

我想设置nginx作为我的networking服务器。 我想有图像文件caching在内存(RAM),而不是磁盘。 我正在服务一个小页面,并希望从RAM中总是提供几个图像。 我不希望使用清漆(或任何其他这样的工具),因为我相信nginx有能力caching内容到RAM中。 我不知道如何configurationnginx呢? 我曾尝试过几种组合,但都没有奏效。 nginx一直使用磁盘来获取图像。 例如,当我尝试使用以下命令testingapache基准testing: ab -c 500 -n 1000 http://localhost/banner.jpg 我得到以下错误: socket: Too many open files (24) 我想这意味着nginx试图从磁盘同时打开许多文件,操作系统不允许这个操作。 任何人都可以请build议我一个正确的configuration?

遇到memcache.so问题

我被要求启动其他人build立的网站。 这是一个需要Memcached运行的WordPress商店网站,我一直在麻烦获取Memcached和memcache php插件在我的本地服务器上工作。 在安装memcached和memcache PHP插件之前,我会得到这个错误: Fatal error: Class 'Memcache' not found in [Path]wp-content/object-cache.php on line 350 现在我已经安装了memcache和memcache PHP插件(通过Homebrew),我得到一个“No data received”页面,并在我的Apache错误日志中得到这个错误: dyld: lazy symbol binding failed: Symbol not found: _mmc_queue_pop Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so Expected in: flat namespace dyld: Symbol not found: _mmc_queue_pop Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/memcache.so Expected in: flat namespace [Sat May 05 16:38:27 2012] [notice] child […]

Memcache基本configuration

我使用memcached pecl扩展安装了Drupal站点的memcache。 这一切都运行良好,但我还在努力configuration设置。 例如,遵循drupal.org上的build议 You should probably lock down the memcache server so that it only listens for connections from the hosts that need to be served, as the default is that memcache listens to connections from all addresses. So, to close that hole, edit /etc/sysconfig/memcached with: OPTIONS="-l ${HOSTIP}" 问题是我的服务器上没有这个文件,无论如何都不在这个位置。 其他一些文章提到/etc/memcached.conf,但是我也找不到这个文件。 考虑到/ etc / sysconfig […]

如何增加内存memcache使用量?

我目前在运行Redhat x86_64 es5 32Gb RAM的Xeon 7550服务器上。 我已经安装了memcache,configuration中剩余的唯一步骤是设置它使用的内存量。 我已经在旧服务器上完成了这个工作,我通过Filezilla(root访问)下载了一个文件并对其进行了编辑。 现在,我不记得我编辑了哪个文件,以及stream程是如何进行的。 我想设置使用1 GB的memery。 任何人有一些洞察力? 如果你能协助,请彻底,因为我的linux服务器知识是有限的。