Chinaunix首页 | 论坛 | 博客
  • 博客访问: 925320
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类: 系统运维

2009-05-05 15:56:09

 
Apache命令:
       启动:apachectl -k start
       关闭:apachectl -k stop
       重启:apachectl -k restart
       查看日志:tail -f /etc/httpd/logs/error-log
 
  启动和关闭该服务器的命令如下所示:
  ●#apachectl start:启动apache
  ●#apachectl startssl:启动apache ssl。注意,此处若使用start参数,则仅仅启动普通Apache的httpd守护进程,而不启动其SSL能力,只有startssl才能启动Apache的SSL能力。如果之前Apache的守护进程正在运行,便需要使用stop参数先停止服务器运行。
  ●#apachectl stop:停止apache。
  ●#apachectl restart:重新启动apache。
  ●#apachectl status:显示apache的状态。
  ●#apachectl configtest:测试httpd.conf配置是否正确。
[root@gaudi bin]# pwd
/pp/gaudi/apache/bin
[root@gaudi bin]# ls
[root@gaudi bin]# ./apachectl XXXXXXXX
阅读(2852) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~