Witam,
Utworzyłem bazę danych:
initdb -D /home/bazy_danych/postgres
Baza się utworzyła w środku mam:
base pg_clog pg_ident.conf pg_subtrans pg_twophase pg_xlog
global pg_hba.conf pg_multixact pg_tblspc PG_VERSION postgresql.conf
Jednak przy próbie uruchomienia postmastera dostaje komunikat:
[grzempa@ArcoServer postgres]$ pg_ctl start -D /home/bazy_danych/postgres/
server starting
[grzempa@ArcoServer postgres]$ LOG: could not translate host name "localhost", service "5432" to address: Ta nazwa lub us�uga jest nieznana
WARNING: could not create listen socket for "localhost"
FATAL: could not create any TCP/IP sockets
O co moze chodzić??
Odpaliłem drugi raz i teraz mam:
[grzempa@ArcoServer home]$ LOG: could not bind IPv4 socket: Przypisanie ��danego adresu jest niemo�liwe
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
WARNING: could not create listen socket for "localhost"
FATAL: could not create any TCP/IP sockets
Żaden postmaster nie chodzi juz:
[root@ArcoServer home]# ps -A
PID TTY TIME CMD
1 ? 00:00:09 init
2 ? 00:00:00 keventd
3 ? 00:00:10 kapmd
4 ? 00:00:00 ksoftirqd_CPU0
5 ? 00:00:00 kswapd
6 ? 00:00:00 bdflush
7 ? 00:00:00 kupdated
8 ? 00:00:00 xfsbufd
9 ? 00:00:00 xfslogd/0
10 ? 00:00:00 xfsdatad/0
11 ? 00:00:00 scsi_eh_1
12 ? 00:00:00 scsi_eh_2
13 ? 00:00:00 mdrecoveryd
14 ? 00:00:00 kjournald
31 ? 00:00:00 kjournald
126 ? 00:00:00 syslogd
139 ? 00:00:00 klogd
152 ? 00:00:00 crond
167 ? 00:00:00 sshd
190 ? 00:00:00 dhcpcd
258 ? 00:00:00 proftpd
266 tty1 00:00:00 login
267 tty2 00:00:00 agetty
268 tty3 00:00:00 agetty
269 tty4 00:00:00 agetty
270 tty5 00:00:00 agetty
271 tty6 00:00:00 agetty
272 tty10 00:00:00 agetty
273 tty1 00:00:00 bash
276 tty1 00:00:00 su
277 tty1 00:00:00 bash
296 ? 00:00:02 sshd
298 pts/0 00:00:00 bash
329 pts/0 00:00:00 su
330 pts/0 00:00:00 bash
338 pts/0 00:00:00 su
339 pts/0 00:00:00 bash
346 pts/0 00:00:00 su
347 pts/0 00:00:00 bash
622 pts/0 00:00:00 su
623 pts/0 00:00:00 bash
626 pts/0 00:00:00 su
627 pts/0 00:00:00 bash
8044 pts/0 00:00:00 su
8045 pts/0 00:00:00 bash
9584 pts/0 00:00:00 su
9585 pts/0 00:00:00 bash
11001 pts/0 00:00:00 su
11002 pts/0 00:00:00 bash
11079 ? 00:00:00 httpd
11081 ? 00:00:00 httpd
11082 ? 00:00:00 httpd
11083 ? 00:00:00 httpd
11084 ? 00:00:00 httpd
11085 ? 00:00:00 httpd
11086 ? 00:00:00 httpd
11087 ? 00:00:00 httpd
11088 ? 00:00:00 httpd
11093 pts/0 00:00:00 su
11094 pts/0 00:00:00 bash
11103 pts/0 00:00:00 su
11104 pts/0 00:00:00 bash
11108 pts/0 00:00:00 su
11109 pts/0 00:00:00 bash
11130 pts/0 00:00:00 su
11131 pts/0 00:00:00 bash
11147 pts/0 00:00:00 su
11148 pts/0 00:00:00 bash
11166 pts/0 00:00:00 su
11167 pts/0 00:00:00 bash
11170 pts/0 00:00:00 su
11171 pts/0 00:00:00 bash
11175 pts/0 00:00:00 su
11176 pts/0 00:00:00 bash
11194 pts/0 00:00:00 su
11195 pts/0 00:00:00 bash
11196 pts/0 00:00:00 su
11197 pts/0 00:00:00 bash
11205 ? 00:00:00 sshd
11207 ? 00:00:00 sshd
11208 pts/1 00:00:00 bash
11210 pts/1 00:00:00 su
11211 pts/1 00:00:00 bash
11310 pts/0 00:00:00 su
11311 pts/0 00:00:00 bash
11313 pts/0 00:00:00 su
11314 pts/0 00:00:00 bash
11315 pts/0 00:00:00 su
11316 pts/0 00:00:00 bash
11325 pts/0 00:00:00 su
11326 pts/0 00:00:00 bash
11327 pts/0 00:00:00 ps
[/code]