Changes

From SME Server
Jump to navigationJump to search
m
formatting
Line 53: Line 53:  
PostgreSQL requires the initialization of the database environment. This can be done by the following command:
 
PostgreSQL requires the initialization of the database environment. This can be done by the following command:
 
  /etc/rc.d/init.d/postgresql92-postgresql initdb
 
  /etc/rc.d/init.d/postgresql92-postgresql initdb
  −
  −
===Start/Stop PostgreSQL===
  −
PostgreSQL is now installed and initialized, and can be started and stopped manually via:
  −
/etc/rc.d/init.d/postgresql92-postgresql start
  −
and
  −
/etc/rc.d/init.d/postgresql92-postgresql stop
        Line 87: Line 80:  
  source /opt/rh/postgresql92/enable
 
  source /opt/rh/postgresql92/enable
 
  export X_SCLS="`scl enable postgresql92 'echo $X_SCLS'`"
 
  export X_SCLS="`scl enable postgresql92 'echo $X_SCLS'`"
 +
 +
This will take effect after a reboot, or you can run the script manually at this time to set the environment variables.
 +
 +
 +
===Start/Stop PostgreSQL manually===
 +
PostgreSQL is now installed and initialized, and can be started and stopped manually via:
 +
/etc/rc.d/init.d/postgresql92-postgresql start
 +
and
 +
/etc/rc.d/init.d/postgresql92-postgresql stop
     

Navigation menu