The logs in Nginx basically use the Log_form log name to display the log and other types, such as the following example:
Log_format Main ' $remote _addr-$remote _user [$time _local] "$request" '' $status $body _bytes_sent ' $http _referer '' "$http
Keyword matching project in-depth study (i)-Introduction of filters
In the beginning to read this article, please understand the hand to teach you to do keyword matching project (search engine)----The first day ~ hand teach you to do keyword
Nginx installed, when the error when starting
[Root@localhost nginx-1.6.2]#/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx:error while loading shared libraries:libpcre.so.1:cannot open shared object file:no such F Ile or Directory
Because Nginx installation relies on other libraries, it is necessary to install the dependent libraries first. Here are the concrete steps
Http://nginx.org/download/nginx-1.2.8.tar.gz1. Installing the Pcre Library
cd/usr/local/
wget
Adding Key=count to foreach
Place three Change the number of changes you like to change the parameters on it!
Another example of using cycle to change the line,
Forbidden problem: You don't have permission to acess/on the this server.
The cause of this problem is that the default configuration within Apache's http.conf is:
# onlineoffline Tag-don ' t remove
In the application design process, some specific actions need to be able to support undo (undo), such as a recently written file management system. Some basic operations of the file, such as rename, copy, cut, etc., need to support undo, redo
Haproxy
The main function is load balancing, load balancing algorithm support a lot, support health check, support various sessions to maintain the way, support remote information acquisition and so on. The haproxy itself is a load-balanced
#编号1到n的n个猴子围成一圈, from the K monkey began to count off 1, k+1 Monkey newspaper 2,k+2 3 ... Check in M out of the remaining re-count from 1, report m out, repeated circulation, beg the last remaining monkey number. function Myf ($array, $m, $n, $k) {
Recently in the whole Java and ucenter things, constrained by the project architecture needs, not completely ucenter-centric, so in the docking process encountered a lot of unpleasant things. After a lot of research, finally solved two of the major
The order format is as follows:
Rewrite rge replement flagRewrite regular expression replaces the target flag flagThe flag tag can be in several formats:Last-basically use this flag to indicate the completion of the match.Break-Abort Rewirte, do
1. Whether an element exists in the array:
Echo 'Array Operation 1:in_array ($value, $array, $type) ';//$type: Whether the value of $value is type-matched True/false, the default value is False $arr =array ("name" = "DOOR ",";(in_array ("+", $arr))
Insert sort (Insertion sort): Inserts a record to be sorted each time, pressing its keyword size into the appropriate location in the previously sorted sub-file until all records are inserted.
Insert sort (one-dimensional array) function
Smarty is often used in projects, but there are several ways to use the simple assgin display foreach if else. Idle and looked again smarty. Simply record the things that are useful.
smarty system Reserved Variables$smarty.get #使用方法 $smarty.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service