Home > Article > Backend Development > Memcached installation tutorial
download link
www.memcached.org
1,Prepare the compilation environment
InstallGCC
After the virtual machine is connected to the Internet, use yum install gcc ,make,autoconf,libtool A series of tools, these tools will need to be compiled and used in the future, so please install them first. 2. Download the corresponding library and memcache
source code
Libevent.org and
memcached.orgDownload the latest stable VersionDownload address : libevent.org
Note: Because memcached
depends on thelibevent library, you need to compile libevent first, and compile Memcached to specify libeven The path of t. After compilation is completed, xxpath/memcached/bin/memcached
executable file can be run.Compile apache+php+memcache
client under linux, use PHP to operate memcached, go to http.apache.org Downloadhttpd For the source code of , go to php.net to download the source code of php
Modify the virtual machine time:
Unzip:
Compile: Specify the installation path
Install
Install
Memcached1. Unzip. 2. Change directory
3. Compile:
Start with other users:
Client connection:
Start with -u nobody
View help command:
Run in the background:
The above has introduced the Memcached installation tutorial, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.