The httpd RPM installs the /etc/rc.d/init.d/httpd script, which can be accessed using the /sbin/service command.
To start the server, as root type:
/sbin/service httpd start |
To stop the server, as root type:
/sbin/service httpd stop |
The restart option is a shorthand way of stopping and then starting the Apache HTTP Server.
To restart the server, as root type:
/sbin/service httpd restart |
![]() | Note |
|---|---|
start or restart options. |
After editing the httpd.confreload option.
To reload the server configuration file, as root type:
/sbin/service httpd reload |
![]() | Note |
|---|---|
If running the Apache HTTP Server as a secure server, the server password is not required when using the reload option. |
By default, the httpd service will not start automatically at boot time. To configure the httpd service to start up at boot time using an initscript utility, such as /sbin/chkconfig, /sbin/ntsysv, or the Services Configuration Tool program. Refer to the chapter titled Controlling Access to Services in Red Hat Linux Customization Guide for more information regarding these tools.
![]() | Note |
|---|---|
For information about setting up an Apache HTTP Secure Server see the chapter titled Apache HTTP Secure Server Configuration in the Red Hat Linux Customization Guide. |
| Главная |