In Linux, implement ServerPush-Linux Enterprise Application-Linux server application information. The following is a detailed description. Due to the openness of Linux, the creativity of programmers is greatly stimulated, and new technologies that enable Linux as the job platform are constantly emerging. Server Push is an example. It can achieve the best performance without increasing the cost. This article will introduce it in detail.
I. Environment Configuration
In order to fully appreciate the Server Push function in Linux, we need to make some choices in the runtime environment.
1. WWW Server
First, install Apache on Linux so that the functional modules can be compiled freely. In this way, new extended functions such as Server Push, FastCGI, EPerl, and PHP can be fully used.
2. Script support
I recommend using Perl or C to write CGI scripts, because Perl is already the de facto standard of CGI script programs. In addition, you can directly call the C subroutine in Perl 5 without any declaration. No matter what language you use to write CGI scripts, the interpreter should contain the CGI. PM module. The version I tried is 5.004. You can download the latest version of this module from the Internet.
Ii. program instance and Function Analysis
Well, with the above tool, we will write a Server Push program to illustrate its implementation process: