在etc文件下建一个mongrel_cluster的文件夹,下面放一个配置文件:mongrel_cluster.yml
内容(不同的环境做不同的修改):

cwd: /Users/weston/store
log_file: /Users/weston/store/log/mongrel.log
port: “8000″
environment: development
address: 127.0.0.1
pid_file: /Users/weston/store/tmp/pids/mongrel.pid
servers: 4

2. 做个sym link 到Web程序,E.G: ln -s mongrel_cluster/mongrel_cluster.yml ~/store/config/mongrel_cluster.y
ml

3. 启动mongrel_cluster

sudo mongrel_cluster_stat

(BTW,如果要知道Apache做前端代理:请看http://baiselife.com/bbs/thread-313-1-1.html 关于Apache的配置文件

转载请注明:韦旭红的点点滴滴 » mongrel_cluster的配置…