1、编译安装fcgiwrap git clone git://github.com/gnosek/fcgiwrap.git cd fcgiwrap autoreconf -i ..../configure make make install 2、配置fcgiwrap开机脚本 vim /etc/init.d/fcgiwrap #!.../bin/sh # chkconfig: 2345 55 25 DESC="fcgiwrap daemon" DEAMON=/usr/bin/spawn-fcgi PIDFILE=/var/run/spawn-fcgi.pid...FCGI_SOCKET=/var/run/fcgiwrap.socket FCGI_PROGRAM=/usr/local/sbin/fcgiwrap FCGI_USER=www FCGI_GROUP=...) echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2 exit 3 ;; esac exit 0 增加执行权限并开启 chmod +x fcgiwrap
php用php-cgi跑就可以,c-cgi我选用fcgiwrap。下面介绍安装/配置步骤。...fcgiwrap 介绍参见http://nginx.localdomain.pl/wiki/FcgiWrap php-cgi 监听 127.0.0.1:9000 fcgiwrap 监听 127.0.0.1...fcgiwrap wiki --> http://nginx.localdomain.pl/wiki/FcgiWrap 最新版本为gnosek-fcgiwrap-1.1.0-0-g333ff99.tar.gz.../configure --prefix=/usr/local/fcgiwrap make && make install 创建一个shell脚本来用spawn-fcgi 启动fcgiwrap实例 vi.../bin/sh /usr/local/spawn-fcgi/bin/spawn-fcgi -f /usr/local/fcgiwrap/bin/fcgiwrap -a 127.0.0.1 -p 10000
安装Nginx过程省略,不懂的可以Bing,Google,Baidu 安装 fcgiwrap 快速安装: //centos系统安装: yum -y install fcgiwrap //ubuntu系统安装...: apt -y install fcgiwrap 编译安装: //安装必要依赖: //centos系统安装: yum install git-core build-essential libfcgi-dev...//编译安装 cd /usr/local/src/fcgiwrap autoreconf -i ..../configure make mv fcgiwrap /usr/local/bin/ 启动 fcgiwrap //启动fcgiwrap fcgiwrap -f -s unix:/var/run/fcgiwrap.socket...& //检查是否存在相关进程 ps aux | grep '[f]cgiwrap' //如果启动fcgiwrap的用户与启动nginx的用户不一样的话需要给予权限 chmod a+rw /var/
安装 git-core、 nginx 和 fcgiwrap 输入下面的命令安装需要的这三个软件包: apt-get install git-core nginx fcgiwrap 配置 nginx 我的目的是在...认证的用户文件 auth_basic_user_file /etc/nginx/passwd; # FastCGI 参数 fastcgi_pass unix:/var/run/fcgiwrap.socket
build-essential libgd2-xpm-dev autoconf gcc libc6 make wget # apt-get install -y nginx php5-fpm spawn-fcgi fcgiwrap...REMOTE_USER $remote_user; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap.socket...etc/nagios.cfg #启动nagios服务 # /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg #启动fcgiwrap...和php5-fpm服务 # service fcgiwrap restart # service php5-fpm restart 7.浏览器访问服务器IP或域名就可以看到nagios的页面了,默认有本机的监控数据
您可以使用以下命令安装所有这些: apt-get install nginx git fcgiwrap apache2-utils unzip -y 安装完所有软件包后,您可以继续下一步。...fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $1; fastcgi_pass unix:/var/run/fcgiwrap.socket
fastcgi-wrapper安装:进入下面地址: https://github.com/gnosek/fcgiwrap autoreconf -i ..../configure make && make install 启动fastcgi-wrapper: spawn-fcgi -f /usr/local/sbin/fcgiwrap -p 9000 nginx...安装完后,进入conf目录进行fcgiwrap配置: location ~ ^/cgi-bin/.*$ { root /home/light/nginx/; # 填写自己的nginx目录
源码,结合gogit、以及《自己动手写 Git HTTP Server》等文章的消化,最终开始下手着手第3版Git HTTP Server了,它必须基于php语言,必须足够简单可靠,必须能替换掉lua、fcgiwrap
include fastcgi_params; } location /cgi-bin { fastcgi_pass unix:/var/run/fcgiwrap.socket
fastcgi_params; } location /cgi-bin { fastcgi_pass unix:/var/run/fcgiwrap.socket
mariadbApt="libncurses5" cgiApt="build-essential libfcgi-dev autoconf libtool automake libtool spawn-fcgi fcgiwrap...fastcgi_params; } location /cgi-bin { fastcgi_pass unix:/var/run/fcgiwrap.socket...cgi-bin c++ 环境,端口为:$cgiport" if [ ${#psnet} -lt 1 ] then sudo spawn-fcgi -f /usr/sbin/fcgiwrap...mariadb1011 /etc/init.d/mariadb1011 start & #-----------------# /bin/spawn-fcgi -f /usr/sbin/fcgiwrap
libjpeg-turbo8 libjpeg8 libtiff5 libvpx3 libxpm4 nginx-common nginx-core Suggested packages: libgd-tools fcgiwrap
领取专属 10元无门槛券
手把手带您无忧上云