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

  Рет қаралды 66,033

Eli the Computer Guy

Eli the Computer Guy

Күн бұрын

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 жыл бұрын
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 жыл бұрын
You and your channel is the Video Reference for the History of linux. I have been with your channel since 2010s/11s.
@outofahat9363
@outofahat9363 Жыл бұрын
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 жыл бұрын
I like the map on your wall - nice ^^
@miaudottk9080
@miaudottk9080 4 жыл бұрын
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 жыл бұрын
I wanted to say the same thing.
@Isabel-dm1gy
@Isabel-dm1gy 4 жыл бұрын
this is very important
@mukulodd3122
@mukulodd3122 4 жыл бұрын
Thank you for sharing your knowledge. Your teaching style is very convenient to understand.
@shakthidharga9967
@shakthidharga9967 2 жыл бұрын
bro I was about to skip your video because the audio is low, but your content kept me back
@revealme3389
@revealme3389 4 жыл бұрын
hey eil is it possible to install a GPS system into sheep? thanks
@____-gy5mq
@____-gy5mq 4 жыл бұрын
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 жыл бұрын
i was just concerned for this gentlosman, they seem to have trouble with sheep disappear so i thought to ask eil for help ! kzbin.info/www/bejne/oKS4p5agoJ19a8U
@ajinkyakamat7053
@ajinkyakamat7053 3 жыл бұрын
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
@nicholascousar4306
@nicholascousar4306 3 жыл бұрын
Does it make it a difference whether you use foo.service or foo as an argument to systemctl status [service] ?
@ericpa06
@ericpa06 4 жыл бұрын
Louis Rossmann brought me here!
@markstewart4501
@markstewart4501 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Only difference is that Eli is not interesting at all sooooo boring!
@gpyle
@gpyle 4 жыл бұрын
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 .
@sandipjumore7832
@sandipjumore7832 4 жыл бұрын
my ubuntu computer auto start version 18.04.2 LTS,how solve this problem please guidance
@ShivangiSingh-wc3gk
@ShivangiSingh-wc3gk 3 жыл бұрын
I am trying to understand what signals are sent when I do systemctl restart, stop, start service
@jimmyvaught
@jimmyvaught 4 жыл бұрын
Great info!
@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.
@MrBLARG85
@MrBLARG85 2 жыл бұрын
That was perfect! Exactly what I was looking for!
@franksilval
@franksilval 2 жыл бұрын
Love your lessons ....thank you !!!!
@ikrakoy1902
@ikrakoy1902 3 жыл бұрын
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.
@bayrock1337
@bayrock1337 2 жыл бұрын
I use Artix btw
@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
@nosecure
@nosecure 4 жыл бұрын
thanks for the videos one thing is the audio is low try to fix that please !
@skullteria
@skullteria 4 жыл бұрын
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
@brandonfarfan1978
@brandonfarfan1978 Жыл бұрын
Thanks for this lesson on Linux commands.✌😄
@genelong203
@genelong203 2 жыл бұрын
how do you save and exit a edited file when you use systemctl edit
@mrezniable
@mrezniable 2 жыл бұрын
Acually in M$ word you have different options to manage services as well. Cpanel, Net start/stop, sc, Powershell...
@billcodey1430
@billcodey1430 4 жыл бұрын
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
@Racosz
@Racosz 4 жыл бұрын
sudo: service: command not found
@bowieknife
@bowieknife 11 ай бұрын
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.
@tonyjones3530
@tonyjones3530 4 жыл бұрын
These are the videos I support! I let the ads run. This is why you are needed. Thank you.
@kostyashoomsky4201
@kostyashoomsky4201 3 жыл бұрын
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?
@Fante247
@Fante247 4 жыл бұрын
Soooo Eli. Why did you remove the video where you were bashing Louis Rossmann??
@elithecomputerguy
@elithecomputerguy 4 жыл бұрын
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 жыл бұрын
@@elithecomputerguy Ahh i was hoping you realized how stupid it was. Guess i was wrong
@GeckonCZ
@GeckonCZ 4 жыл бұрын
"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.
@denizdengeliyorum
@denizdengeliyorum Жыл бұрын
Hey your background map great do you have any link😅
@mohammedabahussain4562
@mohammedabahussain4562 4 жыл бұрын
Dady, the sound quality is a bit off. However, شكرا يا صاح for the effort that you putting.
@acbacbacbacbacb
@acbacbacbacbacb 4 жыл бұрын
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.
@user-vn7ce5ig1z
@user-vn7ce5ig1z 4 жыл бұрын
Déjà vu. 🤔
@ryanbmd7988
@ryanbmd7988 4 жыл бұрын
Thanks for this fun series, enjoying the Proper Eli charisma!
@phillipmalone2233
@phillipmalone2233 4 жыл бұрын
10:55 😎😎 lines4-20 😎😎
@francopanigaia2425
@francopanigaia2425 4 жыл бұрын
salvatore aranzulla of the US
@josecobo7179
@josecobo7179 4 жыл бұрын
Thanks Eli!
@keksmlg
@keksmlg 4 жыл бұрын
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/
@janp1595
@janp1595 4 жыл бұрын
Bad sound
@muzic6352
@muzic6352 3 ай бұрын
very long video with such little information. this can be done by 2 minutes video...
@leogmafire001
@leogmafire001 4 жыл бұрын
"StaaAaahp"
@gunner75171
@gunner75171 4 жыл бұрын
Just fired up the video. What's with the dislikes?
@AlenTThomas
@AlenTThomas 4 жыл бұрын
Great.
@broo_sh
@broo_sh 4 жыл бұрын
Just use windows and you will be fine
@karimjerbi7084
@karimjerbi7084 4 жыл бұрын
yeah, slow bloated windows servers are definitely superior to linux servers :/
@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 Жыл бұрын
Linux - Task Manager and Kill Processes (top)
15:37
Eli the Computer Guy
Рет қаралды 10 М.
SysVinit vs Systemd
31:19
DJ Ware
Рет қаралды 53 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 192 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 84 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 6 МЛН
The mind behind Linux | Linus Torvalds | TED
21:31
TED
Рет қаралды 6 МЛН
Linux - Network Configuration (ip, route, dhclient, systemd-resolve, netplan)
23:35
systemd on Linux 1: Intro and Unit Files
13:48
tutoriaLinux
Рет қаралды 122 М.
Automate Your Tasks with systemd Timers: A Step-by-Step Guide
33:01
Learn Linux TV
Рет қаралды 25 М.
Linux on Windows......Windows on Linux
23:54
NetworkChuck
Рет қаралды 319 М.
Linux - Vim
18:19
Eli the Computer Guy
Рет қаралды 17 М.
Managing Linux Services | Using systemctl Command
18:26
KeepItTechie
Рет қаралды 1,5 М.
Linux - Shells and Desktop Environments
19:33
Eli the Computer Guy
Рет қаралды 21 М.
8 super heroic Linux commands that you probably aren't using
8:38
Engineer Man
Рет қаралды 727 М.
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 753 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 11 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН