Nginx access log, log cutting, static file not logging and expiration time of LNMP schema (3)

1. Nginx access log 1.1 log format [root@host ~]# vim /usr/local/nginx/conf/nginx.conf / / search for log \ ... ... log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]' ' $host "$request_uri" $status' ' "$http_referer" "$http_user_agent"'; #Combined? Realip is the log name # The contents of the log are followed ...

Posted by balkan7 on Wed, 01 Apr 2020 22:57:44 -0700

keepalived+nginx reverse agent load balancing configuration

Catalog 1. Description of components to realize Nginx load balancing 2 preparation of nginx load balancing experimental environment 3. Nginx reverse agent load balancing installation 4 maintained + nginx to realize the load balance between the active and the standby 1. Description of components to realize Ngin ...

Posted by NoSalt on Wed, 01 Apr 2020 17:31:34 -0700

Installation and deployment of Nginx

1: Install toolkits wget, vim, and gcc yum install -y wget yum install -y vim-enhanced yum install -y make cmake gcc gcc-c++ 2: Download nginx installation package wget http://nginx.org/download/nginx-1.6.2.tar.gz 3: Install dependency package yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum i ...

Posted by phpchamps on Wed, 01 Apr 2020 10:22:31 -0700

nginx profile description

nginx.conf user www www; # Nginx's worker processes run users and user groups worker_processes 4; # Number of startup processes, usually set equal to the number of CPUs #worker_processes auto; #The following parameters specify which cpu is assigned to which process, generally speaking, there is no special specific ...

Posted by lukeurtnowski on Tue, 31 Mar 2020 13:02:36 -0700

Common commands for nginx log statistics

IP related statistics Statistics of IP access (number of independent IP access) awk '{print $1}' access.log | sort -n | uniq | wc -l View the IP access of a certain period of time (4-5 points) grep "07/Apr/2017:0[4-5]" access.log | awk '{print $1}' | sort | uniq -c| sort -nr | wc -l View the top 100 IP S with the most frequent access ...

Posted by TomT on Tue, 31 Mar 2020 12:10:34 -0700

Netflix Zuul service gateway of Spring Cloud series

What is Zuul    Zuul is the front door for all requests from devices and websites to the back end of the application. As an edge service application, zuul aims to realize dynamic routing, monitoring, flexibility and security. Zuul includes two main functions of request routing and filtering. Zuul is the open-source microservice gateway of Ne ...

Posted by doucie on Mon, 30 Mar 2020 21:01:30 -0700

9. SpringCloud Chapter 9, Upgrade, Load Balancing and Service Calls Ribbon and OpenFeign

SpringCloud Chapter VIII, Upgrade, Load Balancing and Service Calls Ribbon and OpenFeign 1. Ribbon 1. Overview SpringCloud Ribbon is a set of client load balancing tools that give NetFlex Ribbon implementations. Simply put, the main function is to provide load balancing algorithms and service calls for clients.The Ribbon client componen ...

Posted by worldcomingtoanend on Sun, 29 Mar 2020 21:12:58 -0700

java executing bash script

Background Soon after May 1, in order to cope with the online service outage, the leader arranged everyone to take turns on duty. But the server is deployed in the intranet. Even if you know that it is down and want to restart, you can't do without a computer. It's not feasible for us to take computers to travel on May Day. So ...

Posted by simply on Sun, 29 Mar 2020 08:07:18 -0700

k8s Service Exposure Plugin-fraefik

CoreDNS implements automatic discovery of services, so how do we expose our services? The first is a nodePort-type service: however, it cannot use the ipvs model, only the iptables model The second option is ingress: note that Ingres resources can only schedule seven-tier network resources, specifically http/https ingress is one of the standa ...

Posted by ChrisF79 on Fri, 27 Mar 2020 20:14:39 -0700

Wechat service number silent authorization calling procedure record

Wechat silent authorization process related problem process record Related tools Intranet penetration tool Peanut hull There is free 1G traffic per month, but I need to hold my ID card to take photos and upload. It's too troublesome to use. natapp Easy to use, you need to scan the real name with Alipay. other... Other friends also ...

Posted by farkewie on Wed, 25 Mar 2020 21:04:12 -0700