栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 系统运维 > 运维 > Linux > Linux命令手册 > 网络通讯

apachectl命令 – Apache服务器前端控制工具

网络通讯 更新时间:发布时间: 百科书网 趣学号

apachectl命令是Apache的Web服务器前端控制工具,用以启动、关闭和重新启动Web服务器进程。

语法格式: apachectl [参数]

常用参数:

configtest检查设置文件中的语法是否正确
fullstatus显示服务器完整的状态信息
graceful重新启动Apache服务器,但不会中断原有的连接
help显示帮助信息
restart重新启动Apache服务器
start启动Apache服务器
status显示服务器摘要的状态信息
stop停止Apache服务器
startssl启动带ssl支持的apache的web服务器进程

参考实例

测试配置文件语法:

[root@linuxcool ~]# apachectl configtest
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::6da1:1b23:c479:649a. Set the 'ServerName' directive globally to suppress this message
Syntax OK

显示服务器状态信息:

[root@linuxcool ~]# apachectl status

重新启动Apache服务器:

[root@linuxcool ~]# apachectl restart
转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/1045.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号