安裝好的 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”開頭的表示禁止 )