Took some time to study the next ktls, which stems from a problem with colleagues, that is, the HTTPS server today and the SCP command to transfer local files, can not use the Sendfile system call!This topic reminds me of a lot of old colleagues, in
#表示SYN队列的长度, the default is 1024, which increases the queue length and can accommodate more network connections waiting to be connected.
Net.ipv4.tcp_max_syn_backlog = 65536
#每个网络接口接收数据包的速率比内核处理这些包的速率快时, the maximum number of packets that
Detailed description of permissions in the php + nginx project and nginx
This article will introduce you to the php + nginx project permissions and share them for your reference. The following describes the details:
Nginx/php-fpm
Process Permissions
; Start a new pool named ' www '.; The variable $pool can we used in any directive and would be a replaced by the; Pool name (' www ' here) [www]; Per pool prefix; It only applies on the following directives:; -' slowlog '; -' Listen ' (unixsocket);
The listen system allows a TCP socket on one host to be passively listening on a port number, waiting for a connection request from a TCP socket from another host, and the following is the function prototype of the LISTEN system call:
#include int
Directory1. Linux kernel parameter Comment2. Two methods of modifying kernel parameters3, kernel optimization parameters production configurationParameter interpretation is collected and collated on the network, and the commonly used optimization
performance tuning is only necessary when adjustments are needed, and adjustments are required to compare the data collected with benchmark data. you do not need to adjust these parameters blindly. 1.TCP keepalive TCP Connection freshness
One, Tomcat settings1. AcceptcountThe maximum queue length for incoming connection requests if all possible request processing threads is in use. Any requests received if the queue is full would be refused. The default value is 100.2.
-A Hardware/kernel bits (AMD64, opterons)-at least 8GB of RAM-A recent Linux kernel (2.6.x)
About tuning, I prefer to not fully disclose them because servers are targets of many attacks, so it's better not help HAC Kers.
The most touchy thing is
HTTP protocol,
Today, ranyonsue's article "about HTTP protocol, one is enough" was suddenly stunned. It turns out that Http is still full! Many of the contents are excerpted fragments!HTTP Overview
HTTP is short for Hyper Text Transfer Protocol
Finally, edit the charming and confusing socket (Sockets) of jguon ). Sockets is not fully utilized in PHP. Today, you will see a server that can connect to the client and connect to the client using socket. The server sends detailed processing
This article mainly introduces how to solve the PHPCURL memory leakage problem. CRUL has a memory leakage problem when accessing the HTTPS website for a long time. This article has found a solution after repeated debugging, need a Friend can refer
This article describes how to deploy a Django application using FastCGI. FastCGI is also the most widely used module for Python framework and server connection, if you need it, you can refer to it as an alternative to the mod_python module. you can
When learning the tcp udp protocol. We always compare the two to learn from each other. This is because, in some respects, these two protocols always confuse us. In order to clearly define their respective definitions, we must distinguish them. So
1. Introduction to nagios plug-ins 1. nagios is an open-source network monitoring software that can be used to monitor host, service, and other objects. nagios can change the image status according to the monitoring changes, for the notification
Whether goto statements should be used
A goto statement is also known as an unconditional transfer statement , which is usually used in conjunction with a conditional statement to change the flow of the program, allowing the program to go
TCP vs UDP vs ICMPAs mentioned earlier, for all types of sockets, not all of them have the same member function. The following table lists the member functions that exist in the 3 sockets:
name
TCP
UDP
ICMP
There are methods for setting and affecting the socket interface options1.getsockopt and Setsockopt2.fcntl3.ioctlgetsockopt and SetSockOptThese two methods apply only to sockets that have two basic types of socket options: Turn on or off the binary
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.