在Linux机器上为Rails项目安装postgres的技巧 [英] tips for installing postgres for a rails project on a linux box

查看:85
本文介绍了在Linux机器上为Rails项目安装postgres的技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将postgres数据库用于2个rails项目和一些php博客。有人对我有提示,应该为红宝石安装哪个pg宝石?
我也在搜索一些一般的postgres配置技巧。

I want to use a postgres database for 2 rails projects and for some php blogs. Does anybody have tips for me, which pg gem I should install for ruby? I'm searching also for some general postgres config tips.

我将Ubuntu 9.04作为服务器运行。

I run Ubuntu 9.04 as Server.

也许(不是过时的)好教程会很棒:)

Maybe a (not outdated) good tutorial would be great :)

谢谢大家

推荐答案

来自Rails Wiki的本文应包含以下信息:

我建议您安装 pg GEM:

I suggest you to install the pg GEM:

gem install pg

Slicehost发表了一篇非常有趣的文章集,内容涉及在Ubuntu上使用和配置PostgreSQL: http://articles.slicehost.com/ PostgreSQL

Also, Slicehost published a really interesting collection of article about using and configuring PostgreSQL on Ubuntu: http://articles.slicehost.com/postgresql

这篇关于在Linux机器上为Rails项目安装postgres的技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆