Implement ServerPush in Linux

Source: Internet
Author: User
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:


QUOTE:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.