1. search for Memcachedyumsearchmemcached. First, check whether memcached exists in the yum software repository. if any, directly go to Step 1 to install memcached. Otherwise, go to step 2. 2. the third-party software library (optional) standard CentOS5 software warehouse does not contain the corresponding memcache packages. Therefore, our first step is to import the third-party software warehouse. Here we recommend RpmFo 1. find Memcached
Yum search memcached
First, check whether memcached exists in the yum software warehouse. if there is any memcached, directly go to step 1 for installation. otherwise, perform step 2.
2. install a third-party software library (optional)
There is no memcache package in the standard CentOS5 software warehouse. Therefore, our first step is to import the package to a third-party software warehouse, here we recommend RpmForge (the RpmForge library now has more than 10000 CentOS software packages and is considered as the safest and most stable third-party software library by the CentOS community). The installation method is as follows:
Wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.5.2-2.rf.src.rpm
Rpm-ivh rpmforge-release-0.5.2-2.rf.src.rpm
3. install Memcached
Yum-y install memcached
4. verify installation
Memcached-h
/Etc/rc. d/init. d/memcached status
5. view the configuration file
Cat/etc/sysconfig/memcached
You can modify the configuration parameters as needed:
PORT="11211"USER="memcached"MAXCONN="1024"CACHESIZE="64"OPTIONS=""
6. start memcached
/Etc/rc. d/init. d/memcached start