1,sudo apt-get install postgresql-8.4
2 sudo nano /etc/postgresql/8.4/main/pg_hba.conf
在ipv4 local connections 下添加
host all all 192.168.1.0/24 md5
sudo passwd postgres #新建密码
3 新建数据库密码.
psql postgres
postgres# ALTER USER postgres WITH PASSWORD ' password '
4 sudo apt-get install pgadmin3 图形界面管理器 #图形界面管理的登陆用户是新建数据库用户和密码