关键词搜索

全站搜索
×
密码登录在这里
×
注册会员

已有账号? 请点击

忘记密码

已有账号? 请点击

使用其他方式登录

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
点击QQ咨询
开通会员
上传资源赚钱
返回顶部
×
  • 微信支付
  • 支付宝付款
扫码支付
微信扫码支付
请使用微信描二维码支付
×

提示信息

×

选择支付方式

  • 微信支付
  • 支付宝付款
确定支付下载