How install and configure Memcached in Ubuntu?
The procedure to install and configure memcached on Ubuntu is as follows:
- Update your Ubuntu based system using the apt command.
- Install memcached on Ubuntu by running: sudo apt install memcached.
- Then edit memcached config file using a text editor:
- Finally restart the memcached on Ubuntu 18.04 OR 20.04 LTS:
How do I start Memcached on Ubuntu? To start Memcached, run the following systemctl command: sudo systemctl start memcached.
Where is Memcached installed on Ubuntu?
Install and configure memcached on Ubuntu
- Open /etc/memcached. conf in a text editor.
- Locate the -m parameter.
- Change its value to at least 1GB.
- Locate the -l parameter.
- Change its value to 127.0.0.1 or localhost.
- Save your changes to memcached. conf and exit the text editor.
- Restart memcached. service memcached restart.
How do you make Memcached?
To build memcached, follow these steps:
- Extract the memcached source package: $> gunzip -c memcached- 1.2.5 .tar.gz | tar xf –
- Change to the memcached- 1.2.5 directory: $> cd memcached- 1.2.5.
- Run configure $> ./configure.
- Run make to build memcached: $> make.
- Run make install to install memcached: $> make install.