Restarting Apache, different ways

Just reference for restarting apache, different strokes for different servers:

# /etc/init.d/httpd restart
# /etc/init.d/httpd start
# /etc/init.d/httpd stop

# service httpd restart

# apachectl -k graceful

sometimes you need sudo because it might only see the path from root

 

Leave a Reply