Appache启动

2944阅读 0评论2009-05-05 lukeunique
分类:系统运维

 
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
上一篇:dos下Tree命令使用说明
下一篇:linux 防火墙配置