留言本-CmdEye技术交流博客
留言本-CmdEye技术交流博客
留言本-CmdEye技术交流博客

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

      apachectl - 播放该命令正确发音

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

语法格式: apachectl [参数]

常用参数:

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

参考实例

测试配置文件语法:

[root@CmdEye ~]# 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@CmdEye ~]# apachectl status

重新启动Apache服务器:

[root@CmdEye ~]# apachectl restart
温馨提示:本文最后更新于2022-08-12 13:06:50,某些文章具有时效性,若有错误或已失效,请在下方留言或联系CmdEye
© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容