Enviado em 16/07/2012 - 19:04h
Boa Noite Pessoal!!
make[1]: Saindo do diretório `/home/helbert/Programas/postgresql-9.1.3/contrib/vacuumlo'
root@debian:/home/helbert/Programas/postgresql-9.1.3/contrib# cp start-scripts/linux /etc/init.d/postgres9.1
root@debian:/home/helbert/Programas/postgresql-9.1.3/contrib# cd /Programas/postgres9.1
bash: cd: /Programas/postgres9.1: Arquivo ou diretório não encontrado
root@debian:/home/helbert/Programas/postgresql-9.1.3/contrib# cd /Programas/postgres9.1.3
bash: cd: /Programas/postgres9.1.3: Arquivo ou diretório não encontrado
root@debian:/home/helbert/Programas/postgresql-9.1.3/contrib# cd
root@debian:~# cd /home/helbert/Programas/postgres-9.1.3
bash: cd: /home/helbert/Programas/postgres-9.1.3: Arquivo ou diretório não encontrado
root@debian:~# cd /home/helbert/Programas/postgresql-9.1.3/
root@debian:/home/helbert/Programas/postgresql-9.1.3# adduser postgres
adduser: O usuário 'postgres' já existe.
root@debian:/home/helbert/Programas/postgresql-9.1.3# mkdir data
root@debian:/home/helbert/Programas/postgresql-9.1.3# ls
aclocal.m4 config.log configure contrib data GNUmakefile HISTORY Makefile src
config config.status configure.in COPYRIGHT doc GNUmakefile.in INSTALL README
root@debian:/home/helbert/Programas/postgresql-9.1.3# chown postgres data
root@debian:/home/helbert/Programas/postgresql-9.1.3# ls
aclocal.m4 config.log configure contrib data GNUmakefile HISTORY Makefile src
config config.status configure.in COPYRIGHT doc GNUmakefile.in INSTALL README
root@debian:/home/helbert/Programas/postgresql-9.1.3# su - postgres
postgres@debian:~$ cd /opt/postgres9.1/bin
postgres@debian:/opt/postgres9.1/bin$ ./initdb -D ../data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale pt_BR.
The default database encoding has accordingly been set to LATIN1.
The default text search configuration will be set to "portuguese".
creating directory ../data ... initdb: could not create directory "../data": Permissão negada
postgres@debian:/opt/postgres9.1/bin$