[root@blliu ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel \r on an \m
[root@blliu ~]# uname -a
Linux blliu 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@blliu ~]# cd /postgresql
[root@blliu postgresql]# ll
total 35612
-rw-r--r-- 1 root root 36424347 03-18 00:05 postgresql-8.4.2-1-linux-x64.bin
启动VNC
[root@blliu ~]# cd /postgresql
[root@blliu postgresql]# ls
postgresql-8.4.2-1-linux-x64.bin
[root@blliu postgresql]# ll
\u603b\u8ba1 35612
-rw-r--r-- 1 root root 36424347 03-18 00:05 postgresql-8.4.2-1-linux-x64.bin
[root@blliu postgresql]# chmod 775 *
[root@blliu postgresql]# ./*.bin //必须以root用户执行,出现图形化界面
//根据向导完成安装。
[root@blliu postgresql]# chkconfig --list | grep postgresql
postgresql-8.4 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭
[root@blliu postgresql]# service postgresql-8.4 status
pg_ctl: server is running (PID: 18070)
/postgresql/PostgreSQL/8.4/bin/postgres "-D" "/postgresql/PostgreSQL/8.4/data"
编辑/postgresql/PostgreSQL/8.4/data/pg_hba.conf文件 //设置连接客户端的IP0/24表示172.168.6.x这个网段都可以连接。
加入
host all all 172.168.6.0/24 md5
保存退出。
[root@blliu data]# service postgresql-8.4 restart
Stopping PostgreSQL 8.4:
waiting for server to shut down.... done
server stopped
Starting PostgreSQL 8.4:
waiting for server to start.... done
server started
PostgreSQL 8.4 started successfully
使用Windows安装的pgAdmin III连接postgres数据库,端口5432,用户名postgres正常。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23135684/viewspace-629764/ ,如需转载,请注明出处,否则将追究法律责任。