1
- Check to make sure that you are running a recent version of CentOS by entering "cat /etc/redhat-release." As of June 2011, the most recent version of CentOS is version 5.6.
- 2Download and setup your system and Memcache to be installed on your server by entering the following commands:"cd /user/local/src""curl -O http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz""tar xzvf memcached-1.4.5.tar.gz""cd memcached-1.4.5""LDFLAGS='-W1, --rpath /usr/local/lib' ./configure --prefix=/usr/local"These commands move the src directory on your system, download Memcache and set the flags that are required to make Memcache work properly on your system.
- 3Run a simple make install to complete the Memcache installation; the code for this is "make && make install." Please note that you will need root privileges to run this command successfully; this is done in CentOS using the "su" command and entering your root password. Be sure that when the process is completed you "su" back your regular user.
- 4Verify that Memcache is installed properly on your system using the following command: "ps auz | grep memcached." If there are no errors printed in your terminal, then everything is fine with your installation. You can stop Memcache with "pkill memcached."
eHow
No comments:
Post a Comment
Thanks for your join,we will be reply to you asap.