大雀软件园

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

实战 FastCGI_2. 安装 FastCGI之五

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

2.5 安置 fcgi 模块 for perl   即使要运用 perl 来撰写 fastcgi 的步调,必需安置 fcgi.pm 这个模块,安置的本领如次: 1. 载入 fcgi-0.45.tar.gz 而且解开 $ gunzip -c fcgi-0.45.tar.gz | tar xvf - 2. 编写翻译及安置 $ perl makefile.pl $ make $ make install 3. 尝试 $ cp echo.fpl /usr/local/www/fcgi-bin $ lynx http://localhost/fcgi-bin/echo.fpl 即使成功的话,该当会看到如次的截止: fastcgi echo (perl) request number 1 no data from standard input. request environment: document_root=/usr/local/apache/htdocs fcgi_role=responder gateway_interface=cgi/1.1 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.9 libwww-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 query_string= remote_addr=127.0.0.1 remote_port=1427 request_method=get request_uri=/fcgi-bin/echo.fpl script_filename=/usr/local/www/fcgi-bin/echo.fpl script_name=/fcgi-bin/echo.fpl server_admin=myhsu@localhost.localdomain server_name=localhost.localdomain server_port=80 server_protocol=http/1.0 server_signature= apache/1.3.6 server at localhost.localdomain port 80 server_software=apache/1.3.6 (unix) mod_fastcgi/2.2.2 unique_id=n1vibx8aaaeaaaqnkko more on its way ... wait a few seconds initial environment:   同样的,即使连接结 http://localhost/fcgi-bin/echo.fpl 不妨看到 request number 连接减少,表白 echo.fpl 仍旧被激活并且连接实行着。   至此,一个可供实行 fastcgi 步调的网站效劳器以及撰写 fastcgi 步调的开拓情况仍旧建置实行,接下来就只等着新的步调放上去啰。

热门阅览

最新排行

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