Problems in the construction of Apache services under Windows

         Recently, the company needed to build a bug system under Windows, and finally chose Mantis.

         Mantis is based on Apache server, PHP, Mysql. There are many specific installation tutorials online. The blogger also found a tutorial to build it. If you need it, you can visit this link: http://www.cnblogs.com/yangxia-test/ p/4459235.html

         The construction work is very easy, but there is a problem of slow card in the subsequent use process. The bloggers are also looking for solutions. Now it is running relatively smoothly. The bloggers list the problems encountered for your reference.

         1. The problem of irregular restart of the Apache service under Windows.

 

   Reason:

 

         The Apache server was originally designed as a Linux system service, and there are certain compatibility issues under Windows.

 

   solution:

 

    Do the following configuration in Httpd.conf:

<IfModule mpm_winnt_module>
ThreadsPerChild 1920
#MaxConnectionsPerChild
MaxRequestsPerChild 10000
AcceptFilter http None
AcceptFilter https None
</IfModule>

         AcceptFilter http none and AcceptFilter https None can solve the situation of Apache suspended animation caused by some browsers such as QQ and 360 access. (Here, the blogger still recommends everyone, as a developer, be sure to use some professional browsers, chrome, Firefox).

   

 

   2. When Apache is running, you need to enable real-time monitoring to view the running status of Apache.

   Open method:

   

Make the following changes in the httpd.conf configuration file:
<Location /server-status>
    SetHandler server-status
	#Order Deny,Allow
	#Deny from all
	#Allow from all
</Location>
ExtendedStatus On

in httpd-info.conf
<Location /server-status>
    SetHandler server-status
	Order deny,allow
	Deny from all
    Allow from all
</Location>
ExtendedStatus On

 Note: Apache 2.4 version needs to enable the support for the allow command, just enable the mod_access_compat module in httpd.conf .

 

   

    Access the monitoring page: add /?refresh=2 after the server ip/server-status to specify the page refresh time in seconds.

    Attach the monitoring parameters here:

    

Field Description
Server Version The version of the Apache server.
Server Built Apache server compile and install time.
Current Time The current system time.
Restart Time Apache restart time.
Parent Server Generation The generation number of the Apache parent process, which is the number of times that httpd has been restarted after receiving a SIGHUP.
Server uptime The elapsed time since Apache was started.
Total accesses The number of connections received and the amount of data transferred for this Apache so far.
CPU Usage Current CPU usage.
_SWSS.... The current state of all Apache processes. Each character represents a program, and the status of up to 256 programs can be displayed.
Scoreboard Key Description of the above state. The following is the meaning of each character symbol:
    * _: Waiting for connection.
    *S: Starting.
    *R: Reading requirements.
    *W: Response is being sent.
    * K: In the state of keeping online.
    *D: Looking up DNS.
    *C: Closing link.
    * L: Log file is being written.
    * G: Enter into the normal end procedure.
    *I: handle idle.
    *.: This program is not yet available.
Srv The generation number of this program and its parent.
PID The process id of this program.
Acc represents the number of accesses handled by this connection and this program, respectively.
M The current status of the program.
CPU CPU resources consumed by this program.
SS The time since the last request was processed.
The time, in thousandths of a second, that Req spent last processing the request.
Conn The amount of data sent by this connection.
Child The amount of data transferred by this subroutine.
Slot The amount of data transmitted by this slot.
Client The address of the client.
Which virtual host or the IP of this host the VHost belongs to.
Request Online request information.

 

    The problems encountered by bloggers are these for the time being. If new problems arise in the future, they will be updated again. You are welcome to post your own problems and make progress together.

 

 

 

     

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326159327&siteId=291194637