HTTP Services
Hello,
I want to know, how can I start and stop 'httpd' service in Enterprise Linux Red Hat 5, with the command line? |
service httpd stop
service httpd start |
Quote:
service httpd restart :) |
If you don't want interruptions to your users
While httpd is running service httpd graceful |
Quote:
|
What is a different between "apachectl [start]" and "service httpd [start]"?
|
Quote:
In Any event I would use the "service" method or the /etc/init.d method becuase it will start the service as the user "www" (I belive). And apachectl starts it as the user starting it (bad). -C |
Ya, use the service httpd ..., or the /etc/init.d/httpd ... command (same thing). They put the lock and pid files in the appropriate places.
Don't forget "service httpd configtest" which is the same as "apachectl configtest". It can save you from downtime when you typo in the conf files. |
Quote:
I ALWAYS do a a 'apachectl -t' (i.e. a config test) before I do a graceful...even when the change was small change...it has saved me plenty of times :) -C |
All times are GMT -5. The time now is 07:57 AM. |