zoukankan      html  css  js  c++  java
  • 【Linux】Apache Httpd 服务管理

    基本的操作方法:
    本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况
    apahce启动命令:
    推荐
    [user@master1 ~]$  /usr/local/apache2/bin/apachectl start
    apache停止命令
    [user@master1 ~]$  /usr/local/apache2/bin/apachectl stop
    apache重新启动命令:
    [user@master1 ~]$  /usr/local/apache2/bin/apachectl restart
    要在重启 Apache 服务器时不中断当前的连接,则应运行:
    [user@master1 ~]$  /usr/local/sbin/apachectl graceful
    如果apache安装成为linux的服务的话,可以用以下命令操作:
    [user@master1 ~]$  service httpd start 启动
    [user@master1 ~]$  service httpd restart 重新启动
    [user@master1 ~]$  service httpd stop 停止服务


    Linux系统为Ubuntu
    一、Start Apache 2 Server /启动apache服务
    # /etc/init.d/apache2 start
    or
    $ sudo /etc/init.d/apache2 start
    二、 Restart Apache 2 Server /重启apache服务
    # /etc/init.d/apache2 restart
    or
    $ sudo /etc/init.d/apache2 restart
    三、Stop Apache 2 Server /停止apache服务
    # /etc/init.d/apache2 stop
    or
    $ sudo /etc/init.d/apache2 stop

  • 相关阅读:
    T-SQL基础(1)
    shell命令--chage
    Oracle SQL Lesson (11)
    shell命令--chpasswd
    Oracle SQL Lesson (10)
    shell命令--passwd
    Oracle SQL Lesson (9)
    shell命令--usermod
    Spring中的工厂模式和单例模式
    Oracle SQL Lesson (8)
  • 原文地址:https://www.cnblogs.com/zhengwenqiang/p/6804652.html
Copyright © 2011-2022 走看看