LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restart http server (https://www.linuxquestions.org/questions/linux-newbie-8/restart-http-server-595224/)

swamprat 10-28-2007 09:42 AM

restart http server
 
Hello all,

Quick question, how do I restart the HTTP server?

Thanks.

uncle-c 10-28-2007 09:53 AM

Code:

/etc/init.d/service start|stop|restart
where service is the service whose status you would like to alter.

E71 10-28-2007 10:03 AM

Quote:

Originally Posted by swamprat (Post 2939720)
Hello all,

Quick question, how do I restart the HTTP server?

Thanks.

Try:
service httpd restart

Brian1 10-28-2007 10:54 AM

I think the service command is a Redhat distro family command. This includes Redhat, Fedora, Centos, Scienitific Linux, and others.

Brian

Jim44 10-28-2007 11:17 AM

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 01:52 AM.