Linux Memcached installation


Release date:2024-03-18 Update date:2024-03-18 Editor:admin View counts:162

Label:

Linux Memcached installation

Memcached supports many platforms: Linux, FreeBSD, Solaris, Mac OS, and can also be installed on Windows.

Linux system installation memcached First install the libeventlibrary

sudo apt-get install libevent ibevent-dev         Automatic download and installation(Ubuntu/Debian)

yum install libevent libevent-devel               Automatic download and installation(Redhat/Fedora/Centos)

Install Memcached

Automatic installation

Ubuntu/Debian

sudo apt-get install memcached

Redhat/Fedora/Centos

yum install memcached

FreeBSD

portmaster databases/memcached

After installation, you can use whereis View the path to the command:

whereis memcached

It is found that the installation location is /usr/bin/memcached .

Source code installation

Download from its official website (http://memcached.org) memcached The latest version.

wget http://memcached.org/latest                    Downloading the latest version

tar -zxvf memcached-1.x.x.tar.gz                    Decompression source code

cd memcached-1.x.x                                  Enter directory

./configure --prefix=/usr/local/memcached           configuration

make && make test                                   compile

sudo make install                                   install

Memcached Running

Memcached The operation of the command:

$ /usr/local/memcached/bin/memcached -h       command help

Powered by TorCMS (https://github.com/bukun/TorCMS).