大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> CGI专区 -> 实战 FastCGI_2. 安装 FastCGI之四

实战 FastCGI_2. 安装 FastCGI之四

时间: 2021-07-31 作者:daque

2.3 安置 fastcgi 开拓套件 1. 载入 fcgi-devkit-2.1.tar.gz 而且解开: $ gunzip -c fcgi-devkit-2.1.tar.gz | tar xvf - 2. 编写翻译 $ cd fcgi-devkit-2.1 $ ./configure $ make 3. 将 c 的标头档 (header file) 及函式库 (library) 安置至体例: $ cp -rp include /usr/local/include/fastcgi $ cp libfcgi/libfcgi.a /usr/local/lib 2.4 尝试 fastcgi  在 fcgi-devkit 套件中内含一个大略的 fastcgi 典型步调 - echo.c,咱们用它来做尝试体例能否安置精确。径直把仍旧编写翻译好的 echo.fcg 复制到预设安置 fastcgi 步调的目次下: $ cd fcgi-devkit-2.1/example $ cp echo.fcg /usr/local/www/fcgi-bin   此刻连忙用欣赏器连到 http://localhost/fcgi-bin/echo.fcg 看看,即使看到以次截止表白您大功成功啦: fastcgiecho requestnumber1,processid:1013 nodatafromstandardinput. requestenvironment: fcgi_role=responder document_root=/usr/local/apache/htdocs http_accept=text/html,text/plain,application/applefile,application/x-metamai l-patch,sun-deskset-message,mail-file,default,postscript-file,audio-file, x-sun-attachment,text/enriched,text/richtext,application/andrew-inset,x-be2 ,application/postscript,message/external-body,message/partial,application/p gp,application/pgp,video/mpeg,video/*,image/*,audio/*,audio/mod,text/sgm l,video/mpeg,image/jpeg,image/tiff,image/x-rgb,image/png,image/x-xbitmap, image/x-xbm,image/gif,application/postscript,*/*;q=0.01 http_accept_encoding=gzip,compress http_accept_language=en http_host=localhost http_negotiate=trans http_user_agent=lynx/2.8.1pre.9libwww-fm/2.14 path=/usr/local/bin:/bin:/usr/bin:/usr/x11r6/bin:/usr/sbin:/opt/kde/bin:/home/m yhsu/bin:/usr/x11r6/bin:/usr/sbin:/opt/kde/bin:/usr/x11r6/bin:/usr/sbin:/opt/kd e/bin remote_addr=127.0.0.1 remote_port=1024 script_filename=/usr/local/www/fcgi-bin/echo.fcg server_admin=myhsu@localhost.localdomain server_name=localhost.localdomain server_port=80 server_signature= apache/1.3.6serveratlocalhost.localdomainport80 server_software=apache/1.3.6(unix)mod_fastcgi/2.2.2 unique_id=n1ptln8aaaeaaapddrkgateway_interface=cgi/1.1 server_protocol=http/1.0request_method=getquery_string= request_uri=/fcgi-bin/echo.fcgscript_name=/fcgi-bin/echo.fcg initialenvironment:   请提防在之上步调所表露的 request number 和 process id 这两个变量,当咱们连接从新加载这支步调时,request number 会从来累加而 process id 的值都不会变换。这表白这支步调在第一次激活之后就从来实行着没有中断,并且在历次联机乞求中所参照到的变量空间是沟通的 (以是 request number 会连接加一)。 到此为止,咱们仍旧胜利创造起一个可供兴盛 fastcgi 运用步调的情况及实行 fastcgi 运用步调的网站实行平台。

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.