apache 命令使用,apache命令使用


首先将apache的bin 和sbin 文件目录作为环境变量导入到/etc/profile中

  vim /etc/profile;

  插入:(注意 PATH="  之间不能用空格)

  export PATH="$PATH:/usr/local/apache/bin"

  source /etc/profile;

1.查看版本

    apache -v;

    httpd -v;

2.开启apche服务:

   apachectl start ;

  service httpd start;

3.停止服务:

   apachectl stop;

   service httpd stop;

3.重启服务:

  apachectl restart;

  service httpd restart;

4.重启服务时不中断当前连接:

  apachectl graceful;


相关内容

    暂无相关文章