반응형
/****************************************************************************************************************
-- Title : [PGS9.2] Auto start of PostgreSQL when service boots up
-- Key word : /etc/rc.local 자동시작 자동 시작 restart auto
****************************************************************************************************************/

Register auto start when server boots up 

root# vi /etc/rc.local
...
su – postgres –c ‘pg_ctl –D “/home/postgres/pgsql/data” start’   #add 

 

Confirm restart Postgresql after server boots up 

root# shutdown –r now
... reboot
 
postgres$ pg_ctl status
pg_ctl: server is running (PID: 2563)
/home/postgres/pgsql/bin/postgres "-D" "/home/postgres/pgsql/data"

 

 

반응형

+ Recent posts