zoukankan      html  css  js  c++  java
  • 打开Apache自带的Web监视器

    首先,需要打开httpd.conf中的mod_status模块,具体步骤为:

    1.用VI打开文件/etc/httpd/conf/httpd.conf

    2.在VI命令模式下,输入/server-status进行查找,直到看到下面文字

    #
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # Change the ".example.com" to match your domain to enable.
    #
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from all
    </Location>

    #

    上面这一段文字默认是屏蔽的,需要去掉左边的屏蔽符号#

    Allow from all这一句all是我自己修改的,如果需要限制的话自行输入ip地址

    之后重启httpd

    [root@asg11 conf]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]

    在浏览器地址栏输入http://asg11.watson.ibm.com/server-status来查看服务器信息,结果是这样

    2016年3月1日9:30:14

  • 相关阅读:
    兼容IE678浏览器的html5标签的几个方案
    CommonJS和AMD/CMD
    axios的使用
    自己写表单校验插件
    表单校验
    JS打开新窗口的2种方式
    mac 上使用移动硬盘
    Boostrap
    Web.config详解
    DataTable
  • 原文地址:https://www.cnblogs.com/heyang78/p/5229782.html
Copyright © 2011-2022 走看看