linux命令:apachectl 命令详解-graceful 不中断原有连接,重新启动Apache服务器
apachectl(Apache control interface)
功能说明:可用来控制Apache HTTP服务器的程序。
apachectl 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 httpd daemon.
语 法:apachectl [configtest][fullstatus][graceful][help][restart][start][status][stop]
某些系统下某些参数命令可能不可用,如fullstatus、status
补充说明:apachectl是slackware内附Apache HTTP服务器的script文件,可供管理员控制服务器,但有些Linux的Apache HTTP服务器不一定有这个文件。
参 数:
configtest 检查设置文件中的语法是否正确。用于修改了配置文件后进行测试是否有误。 fullstatus 显示服务器完整的状态信息。 graceful 重新启动Apache服务器,但不会中断原有的连接。用于修改了配置文件后进行重新读取配置文件。 help 显示帮助信息。 restart 重新启动Apache服务器。 = httpd -k restart start 启动Apache服务器。 status 显示服务器摘要的状态信息。 stop 停止Apache服务器。











