php multiprocess programming
PHP's process control supports Unix mode process creation, program execution, signal processing and process interruption. Process control cannot be applied to the Web server environment, which may bring unexpected results when used in the Web service environment.
pcntl_fork(): generates a branch ( ...
Posted on Thu, 16 Jan 2020 03:25:27 -0500 by Travist6983
Nginx reverse proxy function
Reverse proxy: reverse proxy is also called reverse proxy. It refers to a way to proxy the request of the external network user to the internal specified web server and return the data to the user. This is a more frequently used way
In addition to providing high-performan ...
Posted on Sat, 11 Jan 2020 05:31:05 -0500 by Jean-Yves
What if php fails to call python?
Solutions to PHP's failure in calling Python
Suppose there is a file: php_test.php python_test.py
To run Python in a php file:
exec("python python_test.py", $array, $ret);
If there is an error in running Python, it cannot be saved in array array, so you should redirect the standard error to a file. The abo ...
Posted on Fri, 10 Jan 2020 01:22:32 -0500 by jonnyw6969
Today, a Lamp system has been deployed on Aliyun ECS, and a WordPress website has been built to record the operation. The scripts listed in this article can be applied directly.
I wanted to install one directly in the mirror market, but I couldn't change two or three mirrors, or deploy it manually.
Log in to the Elastic Cloud Serv ...
Posted on Mon, 06 Jan 2020 22:10:56 -0500 by allworknoplay
Let's Encrypt is used for free SSL certificate application.
1. Let's Encrypt is a public free SSL project in foreign countries, which is hosted by Linux foundation and initiated by Mozilla, Cisco, Akamai, IdenTrust, EFF and other organizations. 2. The Let's Encrypt certificate is valid for three months and needs to be renewed every three month ...
Posted on Mon, 06 Jan 2020 13:33:03 -0500 by Richardtagger
Create and get cookie s
Producer: heart and soul
Cookie: in the Internet, a cookie is a small piece of text information generated on a web server and sent to a browser. Cookies can be used to identify users, record user names and passwords, track duplicate users, etc. The browser saves the cookie in the form of key/value to a specified director ...
Posted on Tue, 31 Dec 2019 04:14:02 -0500 by Rushy
Nginx Web Services
The concept of Nginx
Nginx (engine x) is a high-performance HTTP and reverse proxy web server, and also provides IMAP/POP3/SMTP services. Nginx was developed by Igor sesoyev for the Ramblerru site (Russian: Pamonep), the second most visited site in Russia. The first public version, 0.1.0, was released on October 4, 2004.It p ...
Posted on Tue, 24 Dec 2019 05:18:20 -0500 by llirik
ACL access control
ACL access control mode
Define list according to source address, destination URL, file type, etc
acl list name list type list content
Restrict acl list defined
HTTP access allow or deny list name
ACL rule priority
When a user accesses the proxy server, Squid will match all rule lists defined in Squid in order, and s ...
Posted on Mon, 23 Dec 2019 23:11:02 -0500 by Jr0x
Overview of caching
How Web Agents Work
Cache Web page objects to reduce duplicate requests
Basic types of agents
Traditional Proxy: For Internet use, specify the server explicitly
Transparent proxy: Instead of specifying the proxy server's address and port, clients redirect Web access to the proxy server through default routing and firew ...
Posted on Mon, 23 Dec 2019 15:36:45 -0500 by Chicken Little
1. Introduction to static-dynamic separation and load balancing
Dynamic and Static Separation of Nginx+Tomcat:The so-called dynamic-static separation is to process static files such as pictures, html, etc. requested by clients through nginx (or apache, etc.), and dynamic files such as jsp, do, etc. by Tomcat (or weblogic), so as to achieve dy ...
Posted on Sun, 22 Dec 2019 22:28:23 -0500 by psychohagis