One : Generalization

1. A summary of what needs to be configured

Define log format
The split field of the log :^A
Log format :IP Address ^A Server time ^A Request parameters
To configure location, Log requests to local disk
Store the data to the local disk according to the given log format

Two : To configure

1. Go to the main directory

2. New log directory

3. To configure conf/nginx.conf

3、 ... and : test

1. Upload pictures to html

2. start-up ndinx

sbin/nginx

3. The login page

journal :

4. Test again

http://linux-hadoop3.ibeifeng.com/BEIfeng.gif?en=e_l&u_ud=userid&u_mid=usermemberid&c_time=1235251258215

journal :

Nginx To configure ( The generation of logs in the log server ) More articles about

  1. 091 actual combat Nginx To configure ( The generation of logs in the log server )

    One : Generalization 1. A summary of what needs to be configured Define log format The split field of the log :^A Log format :IP Address ^A Server time ^A Request parameters To configure location, Log requests to local disk Store the data to the local disk according to the given log format Two ...

  2. django Build a small server operation and maintenance website - Check the logs in the server and the front-end datatable The use of

    Catalog Project introduction and source code : Take it and use it bootstrap Templates : The server SSH Service configuration and python in paramiko Use : User login and session; The simplest practice is to modify the server time : View and modify server configuration ...

  3. nginx Configure the image server

    I've studied it these days nginx Configure the content of the image server , I'd like to share with you some personal gains : Nginx It's very popular at present web The server , It originated in Russia . It has the advantages of high processing speed , There's a lot of concurrency , It has the advantage of very low resource consumption , Especially for static ...

  4. tomcat and nginx To configure java The server

    tomcat and nginx To configure java The server Environment configuration   Server configuration   I've written for so long SSM, Made a simple website [ Not joining the database ], And then it's time to start deploying javaWEB The cloud server of . This building uses Tomcat and n ...

  5. nginx To configure https The server

    Method 1 1. Create certificate #cd /usr/local/nginx/conf #openssl genrsa -des3 -out server.key 1024 #openssl req -new -k ...

  6. nginx To configure web The server

    One : Set up the virtual server 1. Set up http { server { listen 127.0.0.1:8080; server_name example.org www.example.org; } } 2 ...

  7. windows Next use nginx To configure https The server

    1. install nginx Come first nginx Under the official website nginx http://nginx.org/en/download.html Unzip the downloaded file and change the file name to nginx , And then copy to C Under the plate , Directory as follows : ...

  8. nginx Configuration error and access log function

    Error log function :logs/error.log nginx.conf in : #error_log logs/error.log; #error_log logs/error.log notice; #err ...

  9. nginx Configure static resources to close access logs

    location ~ .*\.(css|js|gif|png|jpg|jpeg|bmp|swf)$ { root $root_path; access_log off; }

Random recommendation

  1. ORACLE All kinds of little instructions

    Clear all records in the table truncate table et_xxxxxx Delete a piece of data DELETE FROM zhubajie_member.mb_web_login WHERE nickname='m_3 ...

  2. iOS Multithreading GCD( turn )

    from :http://www.cnblogs.com/pure/archive/2013/03/31/2977420.html Grand Central Dispatch (GCD) yes Apple Developed ...

  3. UIBlurEffect To achieve the blur effect

    // Use the image to initialize the background Pattern pattern , Pattern self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageN ...

  4. Codeforces 500A - New Year Transportation【DFS】

    The question : give n Number , End t From i You can jump to i+a[i], Ask if you can get to the finish line #include<iostream> #include<cstdio> #include<cstr ...

  5. Data semantics (2)

    Four ." Inherit " And Data Member (1). Only inheritance, no polymorphism So let's do an example #include <iostream> using namespace std; cl ...

  6. binlog—— The foundation of logical replication

    Ⅰ.binlog Definition and function 1.1 Definition Record every logical operation of the database ( Including table structure change and table data modification ) contain :binlog Document and index file 1.2 effect Copy : Read master library from library binlog, Local playback for replication ...

  7. DataFrame The selection of row and column data

    One . Yes DataFrame The cognitive  DataFrame The essence of life is action (index) Column (column) Indexes + Multiple columns of data . DataFrame The default index is serial number (0,1,2…), It can be understood as location index . Usually we use id identification ...

  8. mybatis Foundation Series ( 3、 ... and )&mdash;&mdash; dynamic sql

    This article is about Mybatis The third article in the Foundation Series , Click on the link below to view the previous article : mybatis Foundation Series ( Two )-- Basic grammar . Alias . Input mapping . Output mapping mybatis Foundation Series ( One )--mybatis introduction dynamic ...

  9. 【 Code audit 】711cms_V1.0.5 Directory traversal vulnerability analysis

      0x00 Environmental preparation 711CMS Official website : https://www.711cms.com/ Website source version :711CMS 1.0.5 Official version ( Release time :2018-01-20) Program source download :https: ...

  10. python redis Enable thread pool management

    pool = redis.ConnectionPool(host=REDIS_HOST, port=REDIS_PORT,max_connections=3,password=REDIS_PASSWO ...