Use yum to quickly install memcached in CentOS
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