There are many articles on the Internet that teach you how to configure a MySQL server. However, considering the differences in server hardware configurations and specific applications, the practices in these articles can only be used as a reference for preliminary setup, we need to optimize the configuration according to our own situation. The good practice is that the MySQL
Preface
In the previous article "ASP. NET. ASP. the "status-1-state management overview" in. NET indicates that HTTP is a "stateless" protocol. When you jump from a page to another page, it does not save data, however, we need to transfer data from one page to another, and share some data among many pages. In order to allow users to save status information through requests, ASP. NET provides a Session sto
To view the running status of the Apache server, you can use the 1. Locate the following in the Apache main configuration file/etc/httpd/conf/httpd.conf:
Copy Code code as follows:
SetHandler Server-status
Order Deny,allow
Deny from all
Allow from. example.com
Remove the previous comment (
Open Apache Server StatusRelease time: August 1, 2008 Category: Apache"Ddzend tool provides download"The efficiency of MD5 functions in PHPApache logs are many and miscellaneous, if you rely on the analysis of logs or check the server process to monitor Apache running state, more cumbersome. In fact, in the Apache 1.3.2 and later version of a feature module to view the Apache
Recently, for work reasons, we need to develop a set of server performance monitoring tools, mainly for servers with the same architecture and software configuration. Considering that php is widely used recently, php was immediately used for implementation. The main functions to be implemented are as follows: 1. system status, such as cpu memory swap and other data; 2. MySQL performance and running
As we can see earlier, requests from browsers are composed of one HTTP command (get or post), zero or more request headers, one blank line, and some query data (post requests:
GET/servlet/somename HTTP/1.1HOST :...Header2 :......Headern:(Blank line)
... (Query data)
The response of the Web server to the request is generally composed of a status line, some response headers, a blank line, and corresponding do
HTTP
1xx-Information prompt
These status codes indicate temporary responses. Before receiving a regular response, the client should be prepared to receive one or more 1xx responses.
100-continue.
101-switch protocol.
2XX-success
This type of Status Code indicates that the server successfully accepts client requests.
200-OK. The client request is successful.
returns the header information for the current HTTP request as an enumeration.After getting the enumeration object, use the standard way to traverse the enumeration object and use the hasMoreElements () method to determine whenStop and use the Nextelement () method to get the name of each parameter.Main.jsp Source code is:To access main.jsp, you will get the following results:Two JSP server responseThe response response object mainly passes the resul
onemethod returns the header information for the current HTTP request as an enumeration.After getting the enumeration object, use the standard way to traverse the enumeration object and use the hasMoreElements () method to determine whenStop and use the Nextelement () method to get the name of each parameter.Main.jsp Source code is:enumeration headernames = Request.getheadernames (); while (Headernames.hasmoreelements ()) {String ParamName = (String) headernames.nextelement (); out.print ("stri
. This onemethod returns the header information for the current HTTP request as an enumeration.After getting the enumeration object, use the standard way to traverse the enumeration object and use the hasMoreElements () method to determine whenStop and use the Nextelement () method to get the name of each parameter.Main.jsp Source code is:Enumeration headernames = Request.getheadernames ();while (Headernames.hasmoreelements ()) {String paramname = (string) headernames.nextelement ();Out.print ("
Start to learn about server status changes of TCP series (1)
The previous article introduced the TCP state machine and learned about the normal state change process of the TCP client through experiments.
So, this article will take a look at the normal state change process of the TCP server.
Server
Apache logs are cumbersome to monitor Apache running status by analyzing logs or viewing server processes. However, in the Apache 1.3.2 and later versions of the functional module to view the Apache Server-status, so it is convenient to view some of Apache's corresponding state information.
First, open Apache
HTTP protocol Header: Image/jpeg dynamic effects: Java, applets, JRE Dynamic Web page:Server-side stored document non-HTML format, but the programming language development script, the script accepts the parameter after the server runs once,After the completion of the operation, HTML-formatted documents are generated, and the generated documents are sent to the client;Cases:web:index.php execution Process: web--Procotol PHP (Run index.php) index.html:Y
configuration).To access the third button, you need to configure the Admin-gui (HTML UI interface) or Admin-script (plain text interface).If you want to access them, configure them together.The following are posted according to TOMCAT7 and TOMCAT8 User configuration: 1, TOMCAT7 Access server Status, manager App, Host Manager configuration.Disclaimer: This configuration is not focused on security, just test
statistics [emailprotected][tempdb]> flush status; Query OK, 0 rows Affected (0.00 sec)-The following query results show that the session-level opened_tables is reset to 0 [emailprotected][tempdb]> shows
Session status like ' Opened_tables '; +---------------+-------+
| variable_name |
Value | +---------------+-------+
| Opened_tables |
0 | +---------------+-------+--author:leshami--blog:http://blog.csdn.n
Use a custom PHP application to obtain the status information of the Web server. Most website hosting companies support customers' access to website statistics, but you often feel that the status information generated by the server is incomplete. For example, most website hosting companies support customers' access to
By detecting a test page in the Web to get an HTTP status code to judge the state of the Web server, the source script comes from the Internet, where you can make a small comment for the study of children's shoes like python.
#!/usr/bin/env python#script name check_web_stat.pyImport Socket #tcp建立socket连接用到Import re #正则表达式模块Import Sysdef check_webserver (address, port, Resource):#建立http请求串If not resource.st
technician to handle.
6, 503 Error
Problem reasonThe application pool is shut down or the traffic is run out due to the incompatibility of program Web program configuration.Workaround:(1) Linux virtual host Restart the site through the background can return to normal. If not, please submit your work order.(2) Widows Virtual Host Please submit the work order contact technician to handle.
HTTP Status Code Summary description-------------------------
. Modify the Pidfile file path 5, open the virtual host and enable the server statusmain profile (httpd.conf) Add and remove annotationsgenerate Server-status Access account and passwordAdd the following configuration to the http-vhostsl.conf file6. Create a new CA and complete the certificate issuance (Umsak 077;openssl genrsa-out Cakey.pem 8192) OpenSSL req-new
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.