您的位置:首页 > 数据库

it's hot ,postgresql 9 install on ubuntu lucid 10.04

2010-10-05 07:14 465 查看

September 28, 2010

Installing PostgreSQL 9.0 on Ubuntu

Filed under: HowTo,ubuntu — devdude @ 8:49 am
Tags: install, ubuntu, postgresql, lucidThanks to Martin Pitt , who maintains the packages for Ubuntu, nstalling the latest version of PostgreSQL on Ubuntu (Lucid) is nothing more than updating your /etc/apt/sources.list with

deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid mainplus

apt-get update and

apt-get installpostgresql-9.0 I recommend reading the release notes and he outstanding good postgresql documentation.

Possibly related posts: (automatically generated)

upgrade postgresql-8.1 to postgresql-8.3 in debian etch
Ads by Google
SSL Installation
Free Trustwave Support Docs Apache and other popular servers
ssl.trustwave.com/Install

Leave a Comment2009-07-01

GPG签名验证错误: http://ppa.launchpad.net hardy Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY

Ubuntu添加新的软件源的时候,update报这个错误

GPG签名验证错误: http://ppa.launchpad.net hardy Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 6AF0E1940624A220

找了下原因,虽然不知道原理,不过大概意思还是能才出来的,解决方法如下:

gpg --keyserver subkeys.pgp.net --recv 99B656EA8683D8A2

gpg --export --armor 99B656EA8683D8A2 | sudo apt-key add -

然后sudo apt-get update就OK了

20090723补充:subkeys.pgp.net尽然提示找不到了,换成keyserver.ubuntu.com即可

gpg --keyserver keyserver.ubuntu.com --recv 99B656EA8683D8A2

gpg --export --armor 99B656EA8683D8A2 | sudo apt-key add -
http://www.mndu.cn/html/y2010/331.html
add new user

execute these as the postgres user:

su - postgres

One option is to create a super-user with something like:

postgres$ createuser -d -a -P jeoff

then:

jeoff$ createdb ibmadb
then do administrative things with that user. I would advise *NOT* using root. If this is a tightly controlled (non-shared) machine, you could make a super user as your normal unix login (which hopefull is not root). Ideally you'll only need root to start the postgres service.

sudo passwd postgres

su postgres

createuser -P -d -a -e mlzboy

dropuser mlzboy

reference:
http://www.linuxsir.org/main/?q=node/275
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: