Hey guys, welcome back. In the last video, we discussed processes, and in this video we're
gonna discuss services, which are a special type of Linux process. For the
sake of this video I've downloaded and installed elasticsearch from elastic.co.
I have tried different versions of their software and I find that
1.7.3 works best for me, and let me just check and make sure I'm telling you guys the
right thing. Yes, 1.7.3 has worked the best for me on all Debian
derivatives that I've tried it on, so if you have trouble with other versions try
installing this. They offer .deb and .rpm installers. We're not going into depth on
elasticsearch but we're going to use this as an example for a service, and
we're gonna see services more in depth in the future as well when we install
Apache web server on the machine and, you know, use that. So, we start a service by
typing "sudo service" and then the service name, and then the action we want to
perform on it which is "start" and we get no output, but it did start. We can
confirm that by going to Firefox here, and going to the web interface of
elasticsearch which is located on port 9200 at localhost, and we see here that we
are connected to elasticsearch. So, we can also stop the service in a similar way.
If we come back here, we'll see that it's unable to connect because we're no longer running
that service. So, a service is like a process except you start it up and it
kind of waits in the background until you need to use it, or it can perform various
tasks in the background. So, they're helpful to have, and they're lighter on the
system when you're not
using them.