Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Install Memcached

ZeroC0D3 Team edited this page Jan 26, 2018 · 2 revisions

Installation Memcached

Install Memcached for Ubuntu version 16.04

Setup Installation

  • Create script install_memcached.sh

  • Add this line:

#!/usr/bin/env sh

##### STOP MEMCACHED SERVICE (if exist) #####
ps aux | grep -i memcached | awk {'print $2'} | sudo xargs kill -9

##### INSTALL MEMCACHED #####
sudo apt-get -y update
sudo apt-get -y install memcached

##### START MEMCACHED SERVICE #####
sudo /etc/init.d/memcached restart
# sudo service memcached restart

##### SHOW MEMCACHED STATUS #####
ps aux | grep memcached
  • Change executable script
chmod +x install_memcached.sh

Running Installation

sh ./install_memcached.sh
Clone this wiki locally