Four common running modes in php

This article introduces four common ways of running php: CGI, FastCGI, Apache 2 handler and CLI. There is a certain reference value, friends in need can refer to it, hope to help you. There are four common running modes of PHP: CGI, FastCGI, Apache 2 handler and CLI. 1,CGI CGI is the common gateway interface, which is a program. Generally speak ...

Posted by ElectricRain on Mon, 20 Apr 2020 23:57:19 -0700

Python Create Local Server Environment Generate QR Code

1. Requirements The company wants to make an H5 mobile adapter page. Because of technical problems, H5 is outsourced. Each time the front-end gives us the source code, we pass the source code to the server for others to access to see if there is a bug. Isn't that troublesome?Some people say that they can let the front end be hosted on their se ...

Posted by vocoder on Sun, 19 Apr 2020 00:55:01 -0700

Do you know four scenarios for Http requests and responses in web projects

[Four cases]: HttpRequest,HttpResponse,HttpServletRequest,HttpServletResponse[What is HTTP?]HyperText Transfer Protocol (HTTP) is a protocol designed to allow clients and servers to communicate smoothly.HTTP works as a request-response protocol between the client and the server.[Two commonly used methods of Http]get - get data from the specifi ...

Posted by only one on Mon, 06 Apr 2020 10:09:36 -0700

Initial use of haproxy

Initial use of haproxy brief introduction HAProxy provides load balancing and proxy based on tcp and http applications. It is a fast, free and reliable solution Although the performance and stability of HAProxy are not as good as lvs, it is much better than lvs in function install On centos7, HAProxy can be inst ...

Posted by Xu Wei Jie on Sat, 04 Apr 2020 14:50:33 -0700

Nginx series tutorials static files on nginx cache server

Using nginx to cache static files on the server 1, Advantages of nginx caching As shown in the figure, nginx caching can reduce the processing pressure of the source server to a certain extent.Because many static files (such as css, js, pictures) are not updated frequently. nginx uses proxy cache to cache users' requests to a local directory. ...

Posted by statrat on Thu, 02 Apr 2020 08:31:58 -0700

Passive way of collecting nginx logs by graylog2

Graylog can collect nginx logs in two ways: one is through the Graylog Collector Sidecar (active mode), and the other is through modifying the nginx configuration file (passive mode). This time, let's change the nginx configuration file (passive mode). The advantage of passive mode is that nginx sends the defined log fields to the user-defined ...

Posted by TheDefender on Sun, 15 Mar 2020 20:52:31 -0700

nginx accesses the project through the domain name (do not receive the project name), cookie loss problem details

Recently, I got a domain name. If I want to use it to directly access the project deployed on Tomcat, I have to add the project name at the beginning. After a short configuration, it succeeded. Visit once and arrive at the landing page. As a result, you can't log in. You have been logging in the inte ...

Posted by bundyxc on Wed, 04 Mar 2020 21:16:34 -0800

Node.js Foundation: Chapter 3

Chapter 1: basic concepts of server 1.1 - composition of the website Web applications are mainly divided into two parts: client and server. Client: the part that runs in the browser is the interface program that the user sees and interacts with. Build using HTML, CSS, JavaScript. Server side: the part running in the server, responsible for sto ...

Posted by ctsiow on Sat, 22 Feb 2020 01:43:32 -0800

Go language defer and recover

1.defer is the code segment executed when the function returns. Whether it is return or panic, the code snippet in defer will be executed. 2.recover is used to capture panic in the defer code segment. When panic occurs, the defer code segment will be executed, in which if recover is available, The panic will be captured and use ...

Posted by Dongowarrior on Thu, 13 Feb 2020 12:45:04 -0800

Dynamic Expansion of Cloud Disk Data Volume Using Ali Cloud CSI Plugin

Using cloud disks to store volumes often requires a cloud disk of appropriate capacity when the service is initialized, but as data grows, the capacity of the data disk cannot meet demand and needs to be expanded. In the expansion scenario of traditional applications, it is often necessary to stop the application manually, back up the data disk ...

Posted by Peter Anselmo on Wed, 12 Feb 2020 17:36:09 -0800