语法
apachectl [configtest][fullstatus][graceful][help][restart][start][status][stop]
参数:
-
configtest 检查设置文件中的语法是否正确。
-
fullstatus 显示服务器完整的状态信息。
-
graceful 重新启动Apache服务器,但不会中断原有的连接。
-
help 显示帮助信息。
-
restart 重新启动Apache服务器。
-
start 启动Apache服务器。
-
status 显示服务器摘要的状态信息。
-
stop 停止Apache服务器。
实例
1)运行apache配置文件测试
[root@localhost ~]# apachectl configtest //配置文件检测,没有错误 httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName Syntax OK
2)重启服务
[root@localhost ~]# **apachectl restart //**``**重启**
以上就是
为各位朋友分享的 相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多 等着你!