View Categories

[tabs slidertype=”top tabs”] [tabcontainer] [tabtext]Transcript[/tabtext] [/tabcontainer] [tabcontent] [tab]
IT – Maintenance Tools – Memcached

0:06
Welcome to this IT Explainer video, part of our Maintenance Tools topic range.

0:11
In this video we’ll cover the subject of Memcached in SLM.

0:16
SLM leverages memcached as its caching tool to speed up the application.

0:20
Memcached is a high performance distributed memory object caching system, generic in nature, but originally intended for using speeding up dynamic web applications by alleviating database load.

0:34
The following information will be covered in this training.

0:36
Chapter one will be Memcached on Windows, and chapter 2 will be Memcached on Linux container.

0:47
In chapter 1 we’ll cover installation, starting, stopping and uninstallation in Windows.

0:54
For this exercise, we’ll need the following two files.

0:57
These will be provided to you with the installation pack.

1:00
So once we have the folder extracted, we’ll open up a command prompt.

1:04
This needs to be in elevated permissions.

1:07
So if we right click and click Run as administrator and then we have a couple of commands that we need to type in, but this will be provided to you.

1:14
You can simply copy and paste these two commands into the command prompt.

1:25
So this is the first command that’s provided in the documentation.

1:29
So once you’ve copied and pasted this, you just need to hit enter and you can see it’s successful.

1:34
The scheduled task memcached has successfully been created and then to run the memcached we need to copy and paste the second command.

1:45
So this will run the memcached.

1:47
Now that to stop it, there’s a command to stop instead of run.

1:51
We just edit this command and put end and hit return and we can see this has successfully stopped the command.

1:59
And if we need to remove the task, we just change end to delete, hit return.

2:08
It asks if you’re sure you want to delete, just type Y and hit return.

2:12
And now memcached was successfully deleted.

2:18
In Chapter 2 we will cover starting, stopping, restarting, and the configuration file in Linux.

2:26
Memcached in the Linux container is already installed in the setup.

2:29
So we’re just going to look at how to Start, Stop and restart memcached.

2:35
So to start memcached we just type service space memcached space start and we can see that started the memcached.

2:44
To stop the memcached we change this to stop and hit return and to restart it’s service memcached restart.

2:53
It’s just restarted now.

2:54
Now to edit the config file of the memcached, let’s just clear the screen.

2:59
So to edit the memcached config file we go to vim etc.

3:06
Memcached dot conf.

3:08
When the container image is deployed, it’s all already there for you.

3:11
But the log file is located in this directory var log memcache dot log.

3:18
The memory is default, the port is default.

3:21
Username is memcache.

3:23
The IP address for the memcache server is just a local IP address, so it’s 127.0.0.1 and we’re using a PID file to run the memcached and that’s all the required information for the memcached container.

[/tab] [/tabcontent] [/tabs]

Scroll to Top