Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-28-2007, 09:42 AM
|
#1
|
Member
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 559
Rep:
|
restart http server
Hello all,
Quick question, how do I restart the HTTP server?
Thanks.
|
|
|
10-28-2007, 09:53 AM
|
#2
|
Member
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299
Rep:
|
Code:
/etc/init.d/service start|stop|restart
where service is the service whose status you would like to alter.
|
|
|
10-28-2007, 10:03 AM
|
#3
|
LQ Newbie
Registered: Oct 2007
Distribution: CentOS 6.10 64bit
Posts: 22
Rep:
|
Quote:
Originally Posted by swamprat
Hello all,
Quick question, how do I restart the HTTP server?
Thanks.
|
Try:
service httpd restart
|
|
|
10-28-2007, 10:54 AM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
I think the service command is a Redhat distro family command. This includes Redhat, Fedora, Centos, Scienitific Linux, and others.
Brian
Last edited by Brian1; 10-28-2007 at 10:55 AM.
|
|
|
10-28-2007, 11:17 AM
|
#5
|
Member
Registered: Feb 2006
Location: Atlanta, Georgia, USA
Distribution: Mint, Ubuntu, Centos
Posts: 57
Rep:
|
And if it's a debian flavor you can try:
/etc/init.d/apache restart
or
/etc/init.d/apache2 restart
|
|
|
All times are GMT -5. The time now is 05:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|