Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182406
  • 博文数量: 29
  • 博客积分: 2115
  • 博客等级: 大尉
  • 技术积分: 320
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-01 18:15
文章分类

全部博文(29)

文章存档

2013年(1)

2012年(1)

2011年(5)

2010年(18)

2009年(1)

2008年(3)

我的朋友

分类: LINUX

2010-02-26 21:11:24

nginx 安装前先装pcre
cd ..
tar zxf pcre-8.00.tar.gz
cd pcre-8.00
./configure
make && make install
 
安装nginx
cd ..
tar zxf nginx-0.7.65.tar.gz
cd nginx-0.7.65
./configure --prefix=/dicc/nginx --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module
make && make install
 
nginx启动:
/dicc/nginx/sbin/nginx
 
安装spawn-fcgi
cd ..
tar zxf spawn-fcgi-1.6.3.tar.gz
cd spawn-fcgi-1.6.3
./configure --prefix=/dicc/spawn
make && make install
spawn-fcgi命令启动:
/dicc/spawn/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u fcgi -g fcgi -f /dicc/php/bin/php-cgi -C 50
 
附:
spawn-fcgi v1.6.3 (ipv6) - spawns FastCGI processes
 
Options:
 -f       filename of the fcgi-application (deprecated; ignored if
                is given; needs /bin/sh)
 -d chdir to directory before spawning
 -a
   bind to IPv4/IPv6 address (defaults to 0.0.0.0)
 -p       bind to TCP-port
 -s       bind to Unix domain socket
 -M       change Unix domain socket mode
 -C   (PHP only) numbers of childs to spawn (default: not setting
                the PHP_FCGI_CHILDREN environment variable - PHP defaults to 0)
 -F   number of children to fork (default 1)
 -P       name of PID-file for spawned process (ignored in no-fork mode)
 -n             no fork (for daemontools)
 -v             show version
 -?, -h         show this help
(root only)
 -c chroot to directory
 -S             create socket before chroot() (default is to create the socket
                in the chroot)
 -u       change to user-id
 -g      change to group-id (default: primary group of user if -u
                is given)
 -U       change Unix domain socket owner to user-id
 -G      change Unix domain socket group to group-id
阅读(12381) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~