2015-09-17 22 views
7

Yeni Mac'imde PostgreSQL'i RoR için çalıştırmaya çalışıyorum (yeni bir kullanıcıyım). Kurulum kılavuzunu takip ettim, ancak düzgün çalışmasını sağlayamıyorum. Benzer sorular buldum ama yardım etmedi. 'Postgres' cmd'de aşağıdaki hatayı alıyorum. Ben postgres, sunucu yapılandırmasını nerede bulacağını bilmiyor

postgres -D /usr/local/var/postgres 

aracılığıyla benim -D çağırmayı ayarladığınızda

postgres does not know where to find the server configuration file. 
You must specify the --config-file or -D invocation option or set the 
PGDATA environment variable. 

ancak kullandığım '6621 öldürmek' denedim ama sonra sadece görünüyor

FATAL: lock file "postmaster.pid" already exists 
HINT: Is another postmaster (PID 6621) running in data directory  
"/usr/local/var/postgres"? 

başka hatayı olsun Farklı bir PID'de başka bir posta ustası başlatın.

LOG: could not bind IPv6 socket: Address already in use 
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. 
LOG: could not bind IPv4 socket: Address already in use 
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 

kimse ben yanlış yapıyorum biliyor mu: Ben de PID kaldırma ve

postgres -D /usr/local/var/postgres 

Ben aşağıdaki hataları almak

çalışan denedim?

+0

Olası yinelenen [sunucu yapılandırma dosyası nerede bulacağını Postgres'e bilmiyor] kullanarak veritabanına (http://stackoverflow.com/questions/39743313/postgres-does-not- bağlanmak için know-nerede-to-bulmak-sunucu yapılandırma dosyası) –

cevap

5

Genellikle, postgres kurulduğunda, sistemde bir hizmet/daemon oluşturulduğundan sunucuyu elle başlatmaya gerek yoktur. Hatayı alıyorsunuz çünkü hizmet zaten çalışıyor.

deneyin psql

ait
İlgili konular