nginxのサポートCGI

私は、Apache、前に一度CGIのデフォルトサポート、限り十分で設定ファイルが、今nginxのより多くの、だけでなく、より多くの熟練したとの環境を使用した後、スクリプトの実行が成功にいくつかの情報を見上げました。

yumを-y GCCのgcc-Cをインストール++ PCRE-のdevel opensslの-develの

nginxのをインストールします。

nginxの-1.8.0.tar.gz xzvfタール
のCDのnginx-1.8.0

./configure --prefix = /ウェブ/ nginxの--with-PCRE --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with- --with-select_module --with-poll_module http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-FILE-AIO --with-のIPv6 - -rtsig_module
作る&& make installを

設定nginx.conf

  場所〜\(CGI | SH | PY){。
                オフgzip圧縮;
                fastcgi_pass 127.0.0.1:9000。
                fastcgi_indexのにindex.cgi。
                fastcgi.confが含まれます。

}

安装産卵-fcgiの-1.6.4.tar.gz

xzvfを取ります...

。/構成、設定

作る&& make installを

インストールFCGI-2.4.0.tar.gz 

。/構成、設定

作る&& make installを

問題に遭遇FCGI-2.4.0 / / fcgio.hに<stdio.h>の#includeを追加含めます

インストールfcgiwrap-1.0.2.tar.gz

問題に遭遇yumをFCGI-develのはautoconfのautomakeには-yインストール

ビューREADMEインストール

スタート

/../bin/spawn-fcgi -a 127.0.0.1 -p 9000 -f /../sbin/fcgiwrap

おすすめ

転載: www.cnblogs.com/cnsa/p/11672219.html