A.P., this is the second service that we wanted to learn and this service stands for network time protocol,
the purpose of this service is to synchronize your computer's time to another server in case you lose
your time.
Time drifts from seconds to minutes.
And when you are running a few servers, more than one in a clustered environment and you're running
your workflow.
So in corporate environment, it becomes very, very imperative that you have all your servers synchronized
with one clock.
So at the time won't shift the file that they will be configuring.
For A.P., it is ETSI A.P. knockoff the servers to run the A.P. Deman is system CTL start or restart
A.P. Deman and the command to check whether it is synchronized or not.
We will have the command and keep running.
So let's get into our server and we will do some configuration or if the configuration is already there,
will go over it and we restart the service.
This is our Linux machine and we are logged in as root and the first thing we have to do is check whether
the A.P. package is installed or not.
So you will run the Comen rpm minus keyway and type and type.
It's telling you that I do have the A.P. package installed.
If you do not have this package installed, then you could just run, jump, install A.P..
And of course, you will get the option to hit why, because it will tell you these other packages it
found and this is the size of the package, do you want me to install it?
And you will hit why and install it for you, since I already have installed is telling me already installed
the latest version.
So let's move on.
The next thing you would do is to modify the A.P. Dakkar file.
A.P. Dakkar File has all those comments that starts with hash browns.
So just ignore them.
Go to the line that has server.
Now in my configuration, I have previously selected the server eight eight eight eight eight.
This server resource to what?
If anyone knows any guesses, this was obvious to Google, it is a Google DNS server.
This is configured for to provide your DNS resolutions as well as some people use it for network time
protocols.
So I have set it up adulterate and that's what I'm going to use it.
The other ones are the centaurs predefine.
I'm not going to touch them.
And this that's it.
I'm just going to save it.
If you don't have it set up, I want you to set it up as 888 eight and then save your file.
Once the file is saved, run the command system, ctrl and start your service.
And the service name is Antipode and D against ads for Demon.
Demon is a service that would never stop and just keep running as a process in the background to listen
to the request that comes in.
How do we know we have started the service?
You do status and right here is telling you that A.P. service is running good.
So another way to find out that the service is running is minus F come in and grep for A.P. Here you
will see this line telling you the A.P. server is running and the process, it is 43 40.
You could kill that command by typing kill four three four zero A.P. Q is the command that would bring
you to an interactive mode when you hit enter you type Piers, and it will tell you which servers you
are connected to to get your time.
You are getting your time from Google.
This is the first server, if you remember, we just configured it with eight eight eight eight and
that is the Google server.
Be getting our time from it.
The other ones are sent our servers.
So if we have confirmed it is getting its time now, we'll just quit out of it.
And if he wanted to stop the service, we'll just do stop and it has to stop.
And if you want to verify it, you'll see there's nothing in there.
So A.P. is another one of the service that every system administrator should know.
And it is very, again, very imperative that you all your workflow servers should run and A.P. to have
time synchronize between them.
So try this A.P. with different servers and have fun.