Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

10.4. Starting and Stopping httpd

download PDF
The httpd RPM installs the /etc/init.d/httpd script, which can be accessed using the /sbin/service command.
To start the server, as root type:
service httpd start
To stop the server, as root type:
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:
service httpd restart

Note

If running the Apache HTTP Server as a secure server, it may be necessary to type the server password whenever using the start or restart options.
After editing the httpd.conf file, however, it is not necessary to explicitly stop and start the server. Instead, use the reload option.
To reload the server configuration file, as root type:
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 does not start automatically at boot time. To configure the httpd service to start up at boot time, use an initscript utility, such as /sbin/chkconfig, /usr/sbin/ntsysv, or the Services Configuration Tool program. Refer to the chapter titled Controlling Access to Services in System Administrators Guide for more information regarding these tools.

Note

If running the Apache HTTP Server as a secure server, the secure server's password is required after the machine boots when using an encrypted private SSL key.
For information about setting up an Apache HTTP Secure Server, refer to the chapter titled Apache HTTP Secure Server Configuration in the System Administrators Guide.
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.