linux下PostgreSql下载和安装(初学)

本文档详细介绍了在Linux CentOS系统中安装PostgreSQL数据库的过程,包括用户创建、下载安装包、启动数据库、设置自动启动,以及创建、查询、删除数据库和表的操作。适合PostgreSQL初学者参考。
摘要由CSDN通过智能技术生成




【ユーザー追加

[root@localhost ~]# useradd postgres
[root@localhost ~]# passwd postgres

PostgreSQL ダウンロード】
[root@localhost ~]# cd /usr/local/src
[root@localhost ~]# wget ftp://ftp.postgresql.org/pub/binary/v8.0.15/linux/rpms/redhat/rhel3.0/postgresql-server-8.0.15-1PGDG.i386.rpm
[root@localhost ~]# wget ftp://ftp.postgresql.org/pub/binary/v8.0.15/linux/rpms/redhat/rhel3.0/postgresql-devel-8.0.15-1PGDG.i386.rpm
[root@localhost ~]# wget ftp://ftp.postgresql.org/pub/binary/v8.0.15/linux/rpms/redhat/rhel3.0/postgresql-libs-8.0.15-1PGDG.i386.rpm
[root@localhost ~]# wget ftp://ftp.postgresql.org/pub/binary/v8.0.15/linux/rpms/redhat/rhel3.0/postgresql-8.0.15-1PGDG.i386.rpm

PostgreSQLインストール
[root@localhost ~]# rpm -ivh postgresql-*8.0.15-1PGDG.i386.rpm

PostgreSQL起動
[root@localhost ~]# /etc/rc.d/init.d/postgresql start                         

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值