Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1017395
  • 博文数量: 171
  • 博客积分: 55
  • 博客等级: 民兵
  • 技术积分: 2077
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-04 10:11
个人简介

pugna

文章分类

全部博文(171)

文章存档

2021年(4)

2020年(1)

2019年(4)

2018年(5)

2017年(7)

2016年(9)

2015年(36)

2014年(8)

2013年(96)

2012年(1)

分类: Mysql/postgreSQL

2013-11-29 15:40:23

系统环境:
CentOS 6.4 64bit

在PostgreSQL 9.3的源码包中,已经有linux系统的启动示例,就是 postgresql-9.3.0/contrib/start-scripts/linux 这个文件。

具体步骤:
1. cp postgresql-9.3.0/contrib/start-scripts/linux  /etc/init.d/postgresql

2.vim /etc/init.d/postgresql
修改 prefix=/postgresql 为实际的安装目录,即$PGHOME
修改 PGDATA="/pgdata" 为实际的数据库文件目录,即$PGDATA

3.chmod a+x /etc/init.d/postgresql

4.chkconfig --add postgresql

5.chkconfig --level 2345 postgresql on




阅读(2711) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~