Memcached is a high-speed, distributed memory caching system. Its official homepage in http://www.danga.com/memcached/
1. Pre-Installation Preparation
Libevent support is required to install the memcached.
CentOS through
Yum Install Libevent-devel
Installation can
Other versions can be obtained by installing the libevent source files
2. Download the latest version of the installation is memcached-1.2.6.tar.gz
Cd/usr/src
wget http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz
Tar xzf memcached-1.2.6.tar.gz
CD memcached-1.2.6
./configure--prefix=/usr/local/memcached
Make
Make install
3. Start
/usr/local/memcached/bin/memcached-d-M 512-l 127.0.0.1-p 10000-u Root
Represents a daemon-initiated way, listening to port 10000 on 127.0.0.1, using root, maximum 512M memory
You can open multiple memcached at the same time, but listen on different ports.
Note: If you do not bring-u root, you will report:
Can ' t run as root without the-u switch
Solution: With-u root on the line.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service