

--- 20140208 ---

--- PostgreSQL ---

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

-- ubunt 13 --
configure: error: readline library not found
configure: error: zlib library not found

-- init proccess --

#!/bin/bash
#
# Init file for postgresql server daemon
#
# chkconfig: 2345 67 25
#
# description: postgreSQL server daemon
#
# processname: postgres

PGACCOUNT="postgres"
PGDATA="/usr/local/pgsql/data"
PG_CTL="/usr/local/pgsql/bin/pg_ctl"

. /etc/rc.d/init.d/functions


start() {
	su - $PGACCOUNT -c "$PG_CTL -D $PGDATA start"
}

stop() {
	su - $PGACCOUNT -c "$PG_CTL -D $PGDATA stop"
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        stop
        sleep 20
        start
        ;;
  *)

        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac
 
exit 0  


-- apache24 --

なんかAPRが無いっておこられます 

$ ./configure --prefix=/usr/local/apache2 --enable-so

-- php-596 --

$ ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql --with-zlib-dir=/usr --enable-mbstring --enable-mbregex


--- 20140209 ---
git  はapt-getした
--- 20140211 ---







