GoDaddy 도움말

How to install Memcache on CentOS

Memcache is an open source distributed memory object caching system. Intended for use in speeding up dynamic web applications by alleviating database load.
DIFFICULTY Basic - 1 | Medium - 2 | Advanced - 3
TIME REQUIRED 15-30+ min
RELATED PRODUCTS Linux-based VPS or dedicated servers

This Article will show you how to install Memcache on CentOS

Before installing Memcache, you need to install it's dependencies first, you can use yum to install libevent.

yum install libevent libevent-devel

Now that the dependencies are in place, you can install memcache.

We want to make sure we are working from the src directory as the root user during this install.

cd /usr/local/src

Then, wget the latest version of memcache from your selected source, in this example with will use googlecode.com

wget http://memcached.org/files/memcached-1.4.21.tar.gz

Now we need to unpack the tar file and switch to the working directory you just created.

tar xvzf memcached-1.4.21.tar.gz

cd memcached-1.4.21

Now we need to configure the Makefile. You must have compiling tools on your server to accomplish this, if you don't you can install gcc and make using yum.

yum install gcc

yum install make

Now configure your Makefile. The preferred method is below:

./configure

After that complete, you can now start compiling memcache:

make && make install

Finally, start the daemon in the background

memcached -d -u nobody -m 512 -p 3452 127.0.0.1

There you go, you have successfully installed memcache and have it running in the background


이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.