112011
 

为了与线上的Ubuntu Server环境同步(主要是不想写两套配置文件,特别是URLRewrite规则= =‘)
准备在mac下安装个nginx + php
不是啥高深技术,纯属记录而已。
安装macports不多赘言。。。
首先安装nginx+php+cgi+spawn-fcgi
sudo port install nginx fcgi spawn-fcgi
sudo port install php5 +fastcgi
然后运行
sudo nginx
sudo spawn-fcgi -a 127.0.0.1 -p 9000 -u nobody -f /opt/local/bin/php-cgi
哈哈,很简单吧。要安装 其他扩展,比如imagick神马的自行安装吧

 Posted by at 1:55 下午

  4 Responses to “Mac下安装nginx+php”

  1. 内容不错,会经常来光顾的!

  2. 128939 451346I consider something actually particular in this web site. 811705

  3. 600605 798665You got a quite exceptional internet site, Glad I noticed it by way of yahoo. 96762

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>