Several cross domain solutions

About cross domain JSONP This may be the first solution that many people come up with, but in fact, it has limitations Front and rear end fit required You can implement cross domain, and others can call your interface Specific implementation: Server side: http://127.0.0.1:8081/test.php <?php echo 'handler( ...

Posted on Tue, 31 Mar 2020 03:14:03 -0400 by mattyj10

Detailed nginx request body reading process

In the previous article, we explained how nginx reads request line and request header data, respectively. After reading the request header, nginx does not read the request body directly, but goes directly to the 11 stages of the http module to start processing the request data.During this process, if the current request matching location is con ...

Posted on Mon, 30 Mar 2020 23:11:25 -0400 by maff20

gunicorn+nginx+flask combat on Centos7

1. Install gunicorn/flask pip install gunicorn flask 2. Write a simple example from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return "This is sample for nginx+gunicorn+flask!" if __name__ == '__main__': app.run() 3. Run the wsgi server gunicorn gunicorn hello:app The default port is 8000. gunicorn serv ...

Posted on Mon, 30 Mar 2020 13:23:06 -0400 by g00bster

nginx tcp load balancing, replacing alicloud slb

We know that nginx was only used for http load balancing, while TCP and UDP used lvs or haproxy for load balancing, but both of them need to be bound with logical addresses. So the problem is that public virtual machine cannot be bound with logical addresses, so we can only use SLB provided by alicloud, so there will be two problems. 1. Spend ...

Posted on Sat, 28 Mar 2020 12:59:44 -0400 by yumico23

High concurrency service flow limiting practice

Starting from the background of current limiting, this paper introduces the common methods, code implementation and source code analysis of current limiting components. This is the first part of this series. It introduces the background, algorithm and implementation of RateLimiter. The second part introduces the source code implementation of ...

Posted on Sat, 28 Mar 2020 09:59:31 -0400 by Jay_Seagrave

Customize linux command parameter completion to improve productivity

When using the bash command, we often use the secondary tab key to complete. For example, our common telnet command lists all the host names of the current system configuration for selection when entering the secondary tab key # input telnet <Tab> <Tab> [huangcihui:/home/huangcihui] telnet ::1 localhost ...

Posted on Sat, 28 Mar 2020 00:41:25 -0400 by djpeterlewis

kubernetes master node goes down and restarts, resulting in the unavailability of kubelet

A k8s master node loses its remote connection. After reconnecting, it is found that the running time of the server becomes shorter. The operation time of the other master node is 18 days. It is suspected that the machine is down and restarted. [root@hdss7-21 ~]# uptime   15:56:20 up 22:01,  1 user,  load average: 0.38, 0.35, 0.41 Check the run ...

Posted on Fri, 27 Mar 2020 10:07:39 -0400 by $kevan

Coexistence of Nginx and multi version PHP

Software download php integrated with nginx needs to choose Non Thread Safe(nts) installation free version. NGINX download. In this case, nginx/Windows-1.10.2 is downloaded. Download and unzip. PHP7.0 download. This example downloads PHP 7.0 (7.0.14) VC14 x64 Non Thread Safe. Download and unzip. PHP5.2 download. This example downloads php-5.2.1 ...

Posted on Thu, 26 Mar 2020 11:05:08 -0400 by newburcj

Coexistence of Nginx and multi version PHP

Software download php integrated with nginx needs to choose Non Thread Safe(nts) installation free version. NGINX download. In this case, nginx/Windows-1.10.2 is downloaded. Download and unzip. PHP7.0 download. This example downloads PHP 7.0 (7.0.14) VC14 x64 Non Thread Safe. Download and unzip. PHP5.2 download. This example downloads php-5.2.1 ...

Posted on Thu, 26 Mar 2020 11:00:16 -0400 by huszi001

Coexistence of Nginx and multi version PHP

Software download php integrated with nginx needs to choose Non Thread Safe(nts) installation free version. NGINX download. In this case, nginx/Windows-1.10.2 is downloaded. Download and unzip. PHP7.0 download. This example downloads PHP 7.0 (7.0.14) VC14 x64 Non Thread Safe. Download and unzip. PHP5.2 download. This example downloads php-5.2.1 ...

Posted on Thu, 26 Mar 2020 10:59:15 -0400 by rammac13