In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to check the running status of the Apahce server through other hosts. I hope you will get something after reading this article. Let's discuss it together.
To see the running status of the Apache server, you can do this with the command. The specific steps are as follows:
1. Find the following in the main configuration file / etc/httpd/conf/httpd.conf of Apache:
The copy code is as follows:
SetHandler server-status
Order deny,allow
Deny from all
Allow from .example.com
Remove the comment in front of it ("#") and modify it to allow client 192.168.1.4 access:
The copy code is as follows:
SetHandler server-status
Order deny,allow
Deny from all
Allow from 192.168.1.4
two。 In order for the server to show its running status so that the client can control it at any time, the comments before the statement ExtendedStatus On need to be removed.
3. Once set up, only 192.168.1.4 can access the server status of Apache.
Windows 2003 to view the running status of APACHE
Check the number of apache port 80 connections and detect the number of HTTPD connections in real time:
Netstat-an | find / c ": 80"
Set the maximum number of apache connections
ThreadsPerChild 250 # maximum number of threads
Timeout setting for MaxRequestsPerChild 100 # requests. 0 means there is no limit. Recommended
(MaxRequestsPerChild cannot be set to 0, which may cause the server to crash due to memory leak)
Open the server-status of Apache
Find the configuration file httpd.conf under apache, and find
# LoadModule status_module modules/mod_status.so
Modify to
LoadModule status_module modules/mod_status.so
ExtendedStatus On
SetHandler server-status
Order deny,allow/ http://www.bbqmw.net/qm_bbqmbd/
Deny from all
Allow from IP
ExtendedStatus On gets a complete report and current status information
Allow from IP refers to the IP that allows access to the running state of apache.
If you open it for viewing, use http://IP/server-status to access it. If you need to update automatically, you can use the
Http://IP/server-status?refresh=N minute N is the update time, and the default is seconds.
The meaning of each field in the output of server-status is as follows:
Field description
Version of the Server Version Apache server.
The time the Server Built Apache server was compiled and installed.
Current Time's current system time.
The time when the Restart Time Apache restarted.
The generation number of the Parent Server Generation Apache parent program (parent process) is the number of times httpd restarted when it received the SIGHUP.
The time elapsed since Server uptime Apache was started.
The number of online connections received by Total accesses to date and the amount of data transmitted for this Apache.
After reading this article, I believe you have a certain understanding of "how to check the running status of the Apahce server through other hosts". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.