Install memcached and linuxmemcached on Linux Server
1. Install memcached
1. Download memcached-1.4.33.tar.gz?libevent-2.0.22-stable.tar.gz
Install memcached on libevent
2. Install libevent
A. Unzip [root @ iZ28b4kreuaZ webserver] # tar zxvf libevent-2.0.22-stable.tar.gz
B. install it in/usr/local /.
Go to the unzip Directory: [root @ iZ28b4kreuaZ libevent-2.0.22-stable] #./configure -- prefix =/usr/local/libevent
C. Compile and install the [root @ iZ28b4kreuaZ libevent-2.0.22-stable] # make & make install
3. Install memcached
A. Unzip [root @ iZ28b4kreuaZ webserver] # tar zxvf memcached-1.4.33.tar.gz
B. install it in/usr/local /.
Go to the unzip directory [root @ iZ28b4kreuaZ memcached-1.4.33] #./configure -- prefix =/usr/local/memcached -- with-libevent =/usr/local/libevent
C. Compile and install the [root @ iZ28b4kreuaZ memcached-1.4.33] # make & make install
D. view the installation directory.
Indicates that the installation is successful.
Ii. Basic memcached operations
1. Start memcached
[Root @ iZ28b4kreuaZ memcached] # bin/memcached-d-u root-p 11211-c 1024
-D: Run memcached as a background process.
-U: Specifies the current root user.
-P: Port 11211 is the default port number of memcached.
-C: Maximum number of supported connections