“apachectl”代表什么?为什么不只是“apache”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/904621/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does "apachectl" stand for? Why isn't it just "apache"?
提问by Bialecki
This should be easy, just curious. I know "httpd" is the HTTP daemon, just curious what the relationship is between "httpd" and "apachectl."
这应该很容易,只是好奇。我知道“httpd”是 HTTP 守护进程,只是好奇“httpd”和“apachectl”之间的关系。
回答by James L
It's short for apache control(ler?). It tells apache what to do, but it isn't the service itself.
它是 apache control(ler?) 的缩写。它告诉 apache 做什么,但它不是服务本身。
回答by Valentin Rocher
httpdis the practical daemon. It's the part that really does the job. apachectlis how you can control this daemon, and do operations on it. It's merely a control interface, not the real program itself.
httpd是实用的守护进程。这是真正起作用的部分。apachectl是您如何控制此守护程序并对其进行操作的方法。它只是一个控制界面,而不是真正的程序本身。
From the manpage :
从联机帮助页:
apache2ctl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache apache2 daemon.
apache2ctl 是 Apache 超文本传输协议 (HTTP) 服务器的前端。它旨在帮助管理员控制 Apache apache2 守护进程的功能。
(I have apache2 on my machine but it's the same thing)
(我的机器上有 apache2,但它是一样的)
回答by Milhous
回答by Eddie
The program apachectlhelps control the Apache HTTPD daemon.
该程序apachectl有助于控制 Apache HTTPD 守护进程。
回答by phihag
The server binary itself is called httpdin the upstream distribution, but apache2in others such as the debian package.
服务器二进制文件本身httpd在上游发行版中被调用,但apache2在其他发行版中被调用,例如 debian 包。
apachectlor apache2ctl(ctl stands for control) is a shell script that allows starting/stopping/etc. the bunch of httpdor apache2processes.
apachectl或apache2ctl(ctl 代表con tro l)是一个允许启动/停止/等的 shell 脚本。一堆httpd或apache2进程。

