安装好的 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”开头的表示禁止 )