httpd restart

A 5 star hangout for overworked and underpaid system admins.
Post Reply
mauricioseis
Posts: 9
Joined: 2020/09/08 02:59:59

httpd restart

Post by mauricioseis » 2020/11/10 17:26:11

If I need to restart the httpd service in a production environment, what could happen? what is the best time window to do it?; thanks in advance

aks
Posts: 3045
Joined: 2014/09/20 11:22:14

Re: httpd restart

Post by aks » 2020/11/10 19:11:28

Umm, a graceful restart?

What could go work? Well config. errors (obviously!)

mauricioseis
Posts: 9
Joined: 2020/09/08 02:59:59

Re: httpd restart

Post by mauricioseis » 2020/11/10 19:16:45

What is exactly a graceful re-start? thanks

User avatar
KernelOops
Posts: 384
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: httpd restart

Post by KernelOops » 2020/11/10 19:25:38

Most of the time, its enough to reload apache and not restart it completely.

to reload

Code: Select all

systemctl reload httpd
to restart

Code: Select all

systemctl restart httpd

if you use apache instances then you need to reload/restart those as well, for example:

Code: Select all

systemctl reload httpd httpd@example.tld
--
I love my computer - all my friends live there.
--

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: httpd restart

Post by TrevorH » 2020/11/10 22:32:46

Which version of CentOS are we talking about?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS Social”