Linux - Start, Stop, Restart Services (Systemd, systemctl, service, init.d )

Поделиться
HTML-код
  • Опубликовано: 13 сен 2019
  • Find code and diagrams at: www.EliTheComputerGuy.com
    There are 3 ways to manage services on Ubuntu Linux. Systemd is considered the “right” way as of now, but using the service command and init.d scripts still work.
    When. you make changes to configuration files for services such as Apache, UFW or SQUID those changes will not become active until you restart the service.
    Systemd
    sudo systemctl status - shows status of all services on server
    sudo systemctl status apache2 - shows status of specific service
    sudo systemctl start/restart/stop apache2 - start/stop restart service
    Service
    sudo service -status-all | less - shows status of services and allows you to scroll through results.
    sudo service apache2 status/start/stop/restart - to manage services
    Init.d (Depricated, but works)
    sudo /etc/init.d/apache2 status/start/restart/stop - to manage services
  • НаукаНаука

Комментарии • 67

  • @paintbll1234
    @paintbll1234 3 года назад +7

    This is gold! I love how you explain the 3 ways to do something. I think this is super important for noobs like me. Thanks for taking the time in explaining everything, and doing pretty well.

  • @rs-tarxvfz
    @rs-tarxvfz 3 года назад +2

    You and your channel is the Video Reference for the History of linux. I have been with your channel since 2010s/11s.

  • @outofahat9363
    @outofahat9363 Год назад +1

    Ive watched pretty much all his more recent series (Networking, Linux, Mysql, Cloud, Programming) they are literal gold mine of information. Not only he's super clear but I especially love the way he tells you things you have to watch out for in the real world when introducing a subject or feature and how he sometimes adds historical context telling you how something has come to be for the thing he's explaining.

  • @prunabluepepper
    @prunabluepepper 4 года назад +2

    I like the map on your wall - nice ^^

  • @mukulodd3122
    @mukulodd3122 4 года назад +3

    Thank you for sharing your knowledge. Your teaching style is very convenient to understand.

  • @miaudottk9080
    @miaudottk9080 4 года назад +11

    Also remember the enable and disable options. These will enable/disable a service to start at computer/VM startup.
    service apache2 enable
    systemctl enable apache2

    • @TheSh_dow
      @TheSh_dow 4 года назад +2

      I wanted to say the same thing.

    • @Isabel-dm1gy
      @Isabel-dm1gy 4 года назад +2

      this is very important

  • @MrBLARG85
    @MrBLARG85 2 года назад

    That was perfect! Exactly what I was looking for!

  • @nicholascousar4306
    @nicholascousar4306 3 года назад +1

    Does it make it a difference whether you use foo.service or foo as an argument to systemctl status [service] ?

  • @gpyle
    @gpyle 4 года назад +1

    I miss the services menu that gnome-system-tools used to contain for administrators. Now with Debian 10 Buster it is gone. Wish I could find a substitute with a gui .

  • @shakthidharga9967
    @shakthidharga9967 2 года назад

    bro I was about to skip your video because the audio is low, but your content kept me back

  • @idselseno2306
    @idselseno2306 2 года назад

    How do you restart a service when if fails with a message "Start request repeated too quickly"? I'm certain that the related config file of the service has no problems. It's just that the service crashed due to starting and stopping it too quickly.

  • @franksilval
    @franksilval Год назад

    Love your lessons ....thank you !!!!

  • @ShivangiSingh-wc3gk
    @ShivangiSingh-wc3gk 3 года назад

    I am trying to understand what signals are sent when I do systemctl restart, stop, start service

  • @ericpa06
    @ericpa06 4 года назад +31

    Louis Rossmann brought me here!

    • @markstewart4501
      @markstewart4501 4 года назад +1

      Same. I have watched Eli's videos in the past. These two have years of beef between each other. There must be some level of respect between them as well, or who cares what the other says. There seems to be some sort of ego issues being tripped. The verbal blows, watching from the outside, have the vibe of teenagers with a bit of knowledge and their feelings get hurt. I enjoy both of them otherwise. They both share some traits. Both share info for the effort of empowering others. I will say that Eli does come off just a little bit authoritarian though. Louis comes off a little too much laissez faire to me. I would like to notice their perspectives as valid, yet maybe a bit excessive at times.

    • @prunabluepepper
      @prunabluepepper 4 года назад +3

      yes, but i think it will backfire to Louis - I had never heard of Eli, but I think his channel is interesting. I will subscribe here now too XD - sorry Louis.

    • @Mr19853
      @Mr19853 4 года назад +3

      Only difference is that Eli is not interesting at all sooooo boring!

  • @ikrakoy1902
    @ikrakoy1902 3 года назад +2

    As of today, init is still alive.
    For those who want init freedom, check out Devuan which is a fork of debian. I like the old way, so I parted from debian to Devuan. We also have Slackware for the purist. Dont be a sheep and get intimidated by the blinking curser.
    I have a systemd install on my 2nd hdd - Arch which is very flexible but has a learning curve.

  • @sandipjumore7832
    @sandipjumore7832 4 года назад

    my ubuntu computer auto start version 18.04.2 LTS,how solve this problem please guidance

  • @brandonfarfan1978
    @brandonfarfan1978 Год назад

    Thanks for this lesson on Linux commands.✌😄

  • @revealme3389
    @revealme3389 4 года назад +15

    hey eil is it possible to install a GPS system into sheep? thanks

    • @____-gy5mq
      @____-gy5mq 4 года назад +2

      revealMe you can install anything into sheep as long as it is alive and well. But for this like this, donkeys are a better investment.

    • @revealme3389
      @revealme3389 4 года назад +1

      i was just concerned for this gentlosman, they seem to have trouble with sheep disappear so i thought to ask eil for help ! ruclips.net/video/jsUvcjk8J5c/видео.html

    • @ajinkyakamat7053
      @ajinkyakamat7053 3 года назад +2

      If your sheep is debian based then try
      sudo apt install libgps-dev libsheep-dev shepple
      sudo modprobe gps
      sudo systemctl start sheeptracker
      or better yet if u have docker running that do
      docker run -d -p 80:80 sheeple:track

  • @tonyjones3530
    @tonyjones3530 4 года назад +2

    These are the videos I support! I let the ads run. This is why you are needed. Thank you.

  • @genelong203
    @genelong203 Год назад

    how do you save and exit a edited file when you use systemctl edit

  • @cutting-edgehub5360
    @cutting-edgehub5360 3 года назад

    But what if a service is failed and we want to make it run ??

  • @lutfar.rahman569
    @lutfar.rahman569 4 года назад

    systemctl enable httpd
    Cannot send after transport endpoint shutdown

  • @mrezniable
    @mrezniable 2 года назад

    Acually in M$ word you have different options to manage services as well. Cpanel, Net start/stop, sc, Powershell...

  • @bowieknife
    @bowieknife 10 месяцев назад

    Thanks for explaining the 3 different ways.... Do you have a guide on how to setup a Systemd Unit on a Linux distro (antiX) without Systemd? How do I convert a service unit file into a script that would work when I type "service appname start"? Thanks in advance.

  • @jimmyvaught
    @jimmyvaught 4 года назад

    Great info!

  • @kostyashoomsky4201
    @kostyashoomsky4201 2 года назад

    I always thought that services in a Linux world are called daemons. Is it true? Is that name deprecated? Or is there a difference between daemons and services?

  • @skullteria
    @skullteria 4 года назад +1

    why r ur videos so silent on my computer? When I use VLC to play the yt video and turn the volume to 150% its ok

  • @nosecure
    @nosecure 4 года назад +3

    thanks for the videos
    one thing is the audio is low try to fix that please !

  • @Racosz
    @Racosz 3 года назад

    sudo: service: command not found

  • @Fante247
    @Fante247 4 года назад +1

    Soooo Eli. Why did you remove the video where you were bashing Louis Rossmann??

    • @elithecomputerguy
      @elithecomputerguy  4 года назад +2

      go to the elicomputerguylive channel... the video was never meant to stay up here, it was simply a notice to my followers that the Daily Blob was coming back...

    • @Fante247
      @Fante247 4 года назад +2

      @@elithecomputerguy Ahh i was hoping you realized how stupid it was. Guess i was wrong

  • @denizdengeliyorum
    @denizdengeliyorum Год назад

    Hey your background map great do you have any link😅

  • @GeckonCZ
    @GeckonCZ 4 года назад +9

    "On Windows there is only one way to do things". Uh, nope. How about "sc", or good ol' "net"? Aside from services.msc... While it all interacts with the same Service Control Manager in the end, you definitely have multiple ways of controlling services in NT-based systems as well.

  • @billcodey1430
    @billcodey1430 4 года назад +9

    Where did your Louis rant go? I came back to laugh at it again and its gone!

    • @TheRealFlyingAnt
      @TheRealFlyingAnt 4 года назад

      Bill Codey boi it’s not even on this channel

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z 4 года назад +9

    Déjà vu. 🤔

  • @mohammedabahussain4562
    @mohammedabahussain4562 4 года назад

    Dady, the sound quality is a bit off. However, شكرا يا صاح for the effort that you putting.

  • @ryanbmd7988
    @ryanbmd7988 4 года назад +3

    Thanks for this fun series, enjoying the Proper Eli charisma!

  • @phillipmalone2233
    @phillipmalone2233 4 года назад

    10:55 😎😎 lines4-20 😎😎

  • @acbacbacbacbacb
    @acbacbacbacbacb 4 года назад +2

    why are there 109 dislikes?

    • @unbekannter_Nutzer
      @unbekannter_Nutzer 4 года назад

      Maybe because he shows Linux in a small Virtualbox Window? Big font is fine for Demos, but why not fullscreen or did I miss the explanation?
      And systemctl status doesn't need sudo. And service --status-all neither.

  • @francopanigaia2425
    @francopanigaia2425 4 года назад +1

    salvatore aranzulla of the US

  • @keksmlg
    @keksmlg 4 года назад +3

    SystemD is THE PROPER WAY to eat up some ram for no reason.

  • @allesabgemacht1964
    @allesabgemacht1964 4 года назад

    see more on Windows
    www.windows-commandline.com/start-stop-service-command-line/

  • @josecobo7179
    @josecobo7179 4 года назад +2

    Thanks Eli!

  • @leogmafire001
    @leogmafire001 4 года назад

    "StaaAaahp"

  • @janp1595
    @janp1595 4 года назад +3

    Bad sound

  • @gunner75171
    @gunner75171 4 года назад +2

    Just fired up the video. What's with the dislikes?

  • @muzic6352
    @muzic6352 2 месяца назад

    very long video with such little information. this can be done by 2 minutes video...

  • @broo_sh
    @broo_sh 4 года назад +7

    Just use windows and you will be fine

    • @karimjerbi7084
      @karimjerbi7084 4 года назад +4

      yeah, slow bloated windows servers are definitely superior to linux servers :/

  • @AlenTThomas
    @AlenTThomas 4 года назад +1

    Great.

  • @elisirfly
    @elisirfly 4 года назад

    I don't get why Louis is giving attention to this channel. I mean sure both channels have similar amount of subscribers but this one is mostly niche content for Linux users nowadays so why even compare.

  • @yusriyunus150
    @yusriyunus150 3 года назад

    I dislike for your audio quality

  • @jessicajurado9414
    @jessicajurado9414 Год назад