此内容没有您所选择的语言版本。

10.4. Starting and Stopping httpd


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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.