|
NewInstallFromPackage
Installing Memcached Binaries
The version of memcached you install matters a lot for what support will be available to you. Ancient versions lack bugfixes, statistics, etc. Commands may be missing, and we may not be able to assist you if the software is too old. Try to have at least 1.4.4 or higher, if that's not too difficult ;) DependenciesMemcached is a C program, depending on a recent version of GCC and a rececnt version of libevent. The recommended method of installation is to first try your distribution's package manager. If the version it contains is too old, you may have to try installing from a backport, or by source. Installing From Your DistributionDebianapt-get install memcached You will also need libevent installed, and apt should fetch that for you. Be warned that most versions of ubuntu and debian have very old versions of memcached packaged. We're working on improving this situation. If you are a Debian user, Debian Backports may have a more recent version available. Ubuntuapt-get install memcached - Same as with debian. Same caveat as debian for issues with old versions being available. Redhat/Fedorayum install memcached Pretty easy eh? Sadly you're likely to pull an old version still. Commercial DistributionsMembase, Inc. offers memcached capabilities in the (freely available) Membase server. It has a UI based management layer that gives visibility into memcached statistics and builds in proxying. It uses the Open Source bucket engine to build in multi-tenancy for memcached. Installing ClientsSome of the popular clients will likely be available in your distribution. Search with apt or yum and see what you can find! libmemcachedMost languages have one or two main clients which depend on libmemcached. This is the standard C library for accessing memcached-speaking servers. Some clients will bundle a compatible version, and some will require it to be installed separately. PEAR/CPAN/GEM/etcDon't forget to check the standard repositories for your preferred language. Installing a client might be a simple command or two. |
Installing on FreeBSD
portmaster databases/memcached
(or substitute whatever ports management tool you use)
To install on Mac OS X (Snow Leopard) there is a package at http://www.box.net/shared/a5ga5kmep0 I use this for development purposes.
An approach that works well on Ubuntu Lucid (which has 1.4.2) is to install the standard package, then build and install the source package and adjust /etc/init.d/memcached and /usr/share/memcached/scripts/start-memcached to point at the binary in /usr/local/bin. I've also requested a backport of 1.4.5 for Lucid.
Is that possible and how to install on windows server?
Try http://blog.elijaa.org/index.php?post/2010/10/15/Memcached-for-Windows and Install: http://support.microsoft.com/kb/251192
memcached -h gives you the options you can pass.. "memcached -m 1024" would use 1gb of ram etc..
And install as service as: sc create memcached binpath= "path to bin.exe"
It would be nice if we had working documentation. The instruction "yum install memcached" on CentOS (Linux) 64 bit fails with this:
> yum install memcached Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Excluding Packages in global exclude list Finished Setting up Install Process No package memcached available. Nothing to do
What's that? CentOS is only the most popular server OS!
for CentOS (Linux) you need to install EPEL Repository to get the memcached package. Refer this http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/
On Mac I used the Homebrew package manager.
brew install libevent # version 2.0.11
brew install memcached # version 1.4.5
brew install libmemcached # version 0.43
@skipperkongen libmemcached install on OSX didn't work for me. I had to "brew edit libmemcached" to the following: url 'http://launchpad.net/libmemcached/1.0/0.50/+download/libmemcached-0.50.tar.gz' homepage 'https://launchpad.net/libmemcached/1.0/0.50' md5 'c8627014a37cd821cf93317b8de6f9f8'
Can this be installed on VirtualBox??