PostgreSQL 启动设置

来源:互联网 发布:淘宝子账号未认证 编辑:程序博客网 时间:2024/05/16 19:16

安装好的 PostgreSQL 设置为自动启动

进入 PostgreSQL 源码解压出来的目录,启动脚本拷贝到 /etc/init.d/ 目录下,重命名为 postgresql-8.3.7,

# cp contrib/start-scripts/linux  /etc/init.d/postgresql-8.3.7

# cd /etc/init.d/

# chmod +x postgresql-8.3.7

添加到自动启动

# chkconfig –add postgresql-8.3.7

在 /etc/rc5.d 文件夹下增加了一个符号链接文件 S19postgresql-8.3.7

( 以“S”开头表示启动,以“K”开头的表示禁止 )