Placeholder Image

Subtitles section Play video

  • please go to the line the computer guy dot com, in order to view schematics, code and Maur for the projects that you are learning about.

  • Welcome back.

  • So in today's video, I'm going to show you how to check on the status of service is on your Lennox server.

  • How to start, stop and really start.

  • Those service is on your server.

  • Why Service's are important in the Lenox world and the server world is basically service's are the applications that are running on your server.

  • So if you have installed a pantry to or engine X or my sequel or whatever else, but the service is not actually running, then when somebody tries to go to your server in order to get a website or to get a database or something like that, they will not be able to access the service.

  • Kind of sort of think about like if you have a desktop computer and you have installed word on that desktop computer, but you have not opened it up right.

  • My opening upward now word as a service has started, and you can start interacting with word if word is installed.

  • But it's not open.

  • Then you can't use words.

  • So that's basically what we're dealing with in the service is we're World on a Lennox server is a lot of times the reason that you're having a problem with your Lennox server instantly because the service, for whatever reason, has been turned off or disabled.

  • And so even though it's installed, even though the configuration files have been done and all that kind of stuff, if the service itself is not running, it doesn't matter.

  • The other reason that understanding how to deal with service is in the Lenox world is important is because if you do any changes to configurations for things such as, let's say, you're your firewall.

  • So there is a built in firewall and Lennox or, if you do a changes to configuration in Apache or squid or anything else.

  • Basically, in the Lenox world for configuration, Do you have a text file when you simply go through the text file and you make modifications and edits Well, remember, right?

  • Those modifications and edits don't actually get loaded into the service until you restart the service.

  • So one of the problems a lot of new boobs and the Lenox world can have is they go in and they do always beautiful, beautiful modifications to the configuration file.

  • But then the server keeps doing what it was doing before they get frustrated and they keep going back and back and back, and they keep doing all these strange is that they keep doing all these modifications, and the reason why their server is still working like it did before is because they haven't really started.

  • The service is if you do, if you change the V hosts within the Apache configuration, but you don't restart the Apache service, then all of that is configurations that you've changed will not be loaded into service.

  • And so the service will keep doing what it has been doing.

  • So these are the reasons why service's are very important in Lenox World.

  • If your service is not running, then again, it's literally and not running.

  • And if you make changes to configuration files and you do not restart the service, those changes will not be loaded into the servers of the server can perform how you're expected to perform now.

  • When we start document service's again, you go back to that whole.

  • Remember, I was talking about that whole good new Lenox saying the cold in new Lenox thing and how Lennox really is only the Colonel and then good new is everything that gets put on top of it.

  • And then that's one of the reasons why Lennox can turn out to be a mess.

  • All right, you goto Windows, you're the windows like it or hate it in the Windows world, there's only one way to do things like one way to do things you go to service is any deal.

  • Service's, that's it.

  • If you hate the control panel, it doesn't matter if you love the control battle, it doesn't matter.

  • Microsoft gives you one way to deal with service is Oh, but we're gonna Lennox world with Lennox World.

  • So what I'm gonna show you today?

  • It's the three ways that basically do the exact same thing as far as service's market, sir.

  • So even when you're doing simple things like checking the status of service is starting restarting.

  • Stopping service is there are always multiple ways to do that in Lenox, And one of the reasons why this could be confusing, especially for Nubes, is because you come in and you've learned one way to do things and then somebody else tells you a different way to do it.

  • And then you get really confused or again, you go to Google.

  • We're trying to figure out how to do something.

  • Let's say change configurations and squid or something like that.

  • And then they tell you how to do something.

  • You're like, what?

  • I've never seen that before.

  • And so that's one of the problems with Lennox is it could get very confused because you could literally have it three different ways to the exact same thing s O.

  • Now, since we're dealing with a bun to Debbie in, uh, they use something called a system buddy.

  • Now, in order to control service is S o the Let me say this official here, the proper way of a proper way to deal with service is and who want to 18.4 And going forward is something cold.

  • System D you use a A command cold system.

  • A C t l start.

  • Stop, restart, but status.

  • And that is the the proper way.

  • D'oh!

  • But understand, even in a bond to 18.4 there's also something called the service command, and so you can actually use something called pseudo service and then Apache two.

  • Or whatever the service's start Stop restart status, and you basically get the exact same results on for anybody that was doing clinics a little bit ago.

  • The way that I don't learn to deal with service is is there's also something called I uh innit I and I T V scripts.

  • So there's a four Call the i n i t dot de folder and in that their specific scripts again for for two deals.

  • Service's Start stock Restart status, the whole nine yards.

  • The one thing I will say is that the i n i t.

  • D is deprecate ID.

  • It's important, Understand?

  • Basically dedicated means in the Lenox world many times is that it still works.

  • It's still there, still does what it does, but there is no longer really any updates.

  • There's no longer work being done on that way of doing things.

  • And so when they say something is deprecate ID, Basically, what they mean is it's come to the end of the road.

  • It does what it does.

  • It's still within the operating system.

  • You can still do it But that's not how you're supposed to do it anymore.

  • More and again, so it's very important.

  • Understand, in the bun to world your official where to do it is System D.

  • But again, something to understand.

  • If you're going back and you're looking a documentation and again with Lennox right again for dealing squid servers or firewall or Apache, you may go back and you may look at some documentation from, Let's say, 2012 within 2012.

  • I I and I T D scripts where the way to do things and so you may see something where they say, modify the configuration files and such and such way.

  • And then this is how you restart the service.

  • And so one of reasons I'm showing you that is just to show you that again, at least in 18.4 It's still work that it probably still work well for work for a few more years.

  • So I'm just showing you that to show you that it exists, and if nothing else is, you get it.

  • When you do see it in the future, you go.

  • Oh, that's how they used to do it.

  • So instead of using i n i t d I'm gonna use a system de loop roper where to do it instead.

  • So do you remember in the Lenox World one of the reasons why Lennox could be so Dorn fusing is you literally you literally three ways.

  • Three ways to to something s eval as start, stop, restart and status on service is so with that, let's go over to my computer.

  • I guess you're the exciting world of service is, uh so here we are my Avanti server again, we have running a bunch of 18.4 point three.

  • Lt s But everything that I'm showing you today should should work for about a decade into the future.

  • There should not be any differences and many of the things that I'm showing you can work 10 generations in the past three.

  • Only thing that might not work if you have an older version of Lennox, is the whole system.

  • The thing I think System D came in four or five years ago.

  • So it should work on any relatively new versions of a bun too.

  • But I don't know if you had a distribution from, let's say, 2010.

  • I don't think system the woodwork then.

  • But on the other hand, why the hell are you running a distribution from 2000 type video?

  • So again, it's the athletics world that's out, Goes S O.

  • This is the standard of standard server insulation with virtual box.

  • The one thing that I have done is I haven't sold a patchy too.

  • So Apache to is a Web server service, I guess so that we have a service that we can interact with here as I'm gonna log in.

  • Of course, we're gonna use Bob.

  • 123456 If that's how I roll with security and gonna hit Enter.

  • So we're now long dead and I'm going to do clear and order to clear the scream s So we're gonna deal with system.

  • The first AM tbe clue system D is the proper way.

  • The proper way to deal with service is in the Lenox world.

  • So the other things that I'll show you today our ways will end up doing the exact same thing.

  • When the problem proper, Robert way system deep.

  • The first thing that we d'oh with system deep is we can use the system C t l command for status.

  • So to look at the status of the different service is on the system.

  • So we knew pseudo system c t l and then space status.

  • So what is going to is gonna show us the status of all the service is that are currently running on the system.

  • Hit.

  • Enter.

  • That's a pseudo 123456 Enter.

  • Now we can see different things, right?

  • So, server, the state is obviously running because we're actually interacting with it and we can go down here.

  • We can see a lot of just generic information that may or may not be a value to you.

  • So one of things that were interested here again, As I said before the Apache to service is running so pack YouTube service that is actually running.

  • We see this star command here Was he p i d s on.

  • So we have this information this right now is not overly valuable, Thio.

  • I just want to kind of show you this so that you know it exists.

  • So it might be a lot more valuable to use again.

  • If we do sudo system c t l space status, and then we actually say what service we care about.

  • So now we're gonna say that we actually care about Apache Tucson 70 everything we just want to Apache to I just want to know a Paki to I just want to know my Siegel, right?

  • So if somebody's coming to my server and for some reason they're not getting the website or let's say they're getting a Web page but it's garbage because it's obviously you're not reading from the database, I could come in here, but my sequel or passion to or whatever service, Right?

  • So I put a passkey to hit inner, and so this tells me specifically about a path.

  • You, too.

  • And so this is honestly, was the help.

  • I have a lot more valuable than guessing in all those service's joins the Apache not to service.

  • You have some information here active so it's active.

  • Running gets in these p i.

  • D.

  • S.

  • These air the process I d numbers gives me some other information, started things the whole nine yards, like inner, gives me some other information here, but the big thing that I'm looking for is like Okay, so At least I know that a path you two is started.

  • Get down once you get to the end Doesn't really tell you what to dio.

  • Q Q is the answer Q and you're out of this Clear to clear the screen.

  • So to use system C t l in order to stop the service will do is you do sudo system c t l.

  • And then what we're going to do is we're going to say, stop happy too.

  • So let's say for some reason we launch we we installed Webster on here.

  • We're using it for some reason, but we just purely want to stop the service.

  • We don't want anybody to be able to get to the website.

  • We could stop we enter than if we do sudo system c t l status pad fee to this will tell us a status we hit Enter.

  • And if we go down here, we can now see inactive.

  • Dead Good.

  • Right.

  • So we know that that service is not running.

  • Then we could just take you to get out of that from that point again.

  • If we just want you simply start the service, we could do sudo system c t l start a patron to start the service again.

  • No big deal.

  • The big one, though The big the big command that you are actually going to use the one that you're actually going to use a lot is simply the restart command.

  • So let's say I go in.

  • I changing configurations.

  • The PHP, don't I?

  • Thank you.

  • Configurations for the V hosts change attentive, can't configurations for something.

  • Service is what you're going to dio is the way to a load.

  • Those configurations actually into memories so that they're being used is by simply restarting.

  • So we do system O c t l restart happy too.

  • And then you get inner on.

  • Then again, woo exciting.

  • This may not seem excited, but this this right here, this is the command that you're actually going to be using on a day today basis.

  • It's over that Let's go over and let's talk about the service.

  • So let me clear this clear the screen.

  • And now the service command, it basically does everything I just showed you, uh, in a different way.

  • So you do is suit up a super user dio on.

  • Then we're gonna