How to Install Memcached on CentOS 7?
Installing the Memcached database in the Linux system is a very important skill to master. In general, it is the Linux Redhat red hat or the Memcached on Centos.Introduction
Memcached is a distributed high performance memory cache system, which belongs to the Nosql database, which is mainly used to solve the pressure caused by frequent access to the database, but it can be used to store any type of object. Almost all popular CMS has a plug-in or module to use memcached, and many programming languages have a memcached Library, including PHP, Perl, Ruby and Python, Memcached runs in memory. It does not need to write data to disk, so it is very fast.
Step #1 Install Memcached, Use the yum command
First, clean-up yum:
update our packages:
yum install Memcached :
Step #2: Configuration of the Memcached Installation
Use the following command to view information on the memcached command:
Edit the memcached configuration information with the VIM command:
The VIM command enters the edit state and displays the following information. We can change the default configuration:
PORT=”11211″ #default port
USER=”memcached” #default user
MAXCONN=”1024″ #default Maxconn
CACHESIZE=”64″ #default CacheSize(MB)
OPTIONS=””
PORT=”11211″ #default port
USER=”memcached” #default user
MAXCONN=”1024″ #default Maxconn
CACHESIZE=”64″ #default CacheSize(MB)
OPTIONS=””
save change and exit:
Step #3: start/stop/restart Memcached command:
Check the memcached status:
Set the Memcached starts at boot:
complete!
No comments:
Post a Comment
Note: only a member of this blog may post a comment.