简体   繁体   English

安装PHP memcache混乱

[英]PHP memcache confusion on install

So looking into using memcache in my web application I am reading up about memcache and memcached . 因此,在我的Web应用程序中使用memcache时,我正在阅读有关memcachememcached Just looking to clarify some things. 只是想澄清一些事情。 First when they say install memcached that means install memcache right? 首先,当他们说安装memcached意味着安装memcache对吗? Just the d is for the daemon correct? 只是d是守护进程正确吗? There isnt something different to install for memcached vs memcache correct? memcached与memcache安装有什么不同吗?

Then the second is the php library, memcache vs memcached. 然后第二个是php库,memcache vs memcached。 Which I understand Im just a bit confused with the installation part when someone says install memcache then I read other posts that says install memcached. 据我所知,当有人说安装memcache时,我对安装部分有点困惑,然后我读了其他帖子,说安装memcached。 This is the url I was planning to use to install memcache, of course with the latest versions: 这是我打算用来安装内存缓存的网址,当然还有最新版本:

http://mrphp.com.au/code/install-memcache-cpanel-running-centos http://mrphp.com.au/code/install-memcache-cpanel-running-centos

You need to: 你需要:

  1. install memcached library into your OS 将memcached库安装到您的操作系统中
  2. install the php-client to work with memcache. 安装php-client以使用memcache。 It could be Memcache or Memcached. 它可能是Memcache或Memcached。
  3. if you'll choose Memcached, you will need to install necessary libevent version 如果您选择Memcached,则需要安装必要的libevent版本

Memcache client is more stable, but Memcached has some interesting features. Memcache客户端更稳定,但Memcached有一些有趣的功能。
Look at differences in functionality (just few functions) and if you really need these new features - take Memcached, otherwise - Memcache. 看一下功能上的差异(只是很少的功能),如果你真的需要这些新功能 - 请使用Memcached,否则 - Memcache。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM