“ФАТАЛЬНЫЙ: файл блокировки” postmaster.pid “уже существует”

Я просто переустановил пост-ГРЭС через brew install postgres

Я работал initdb /usr/local/var/postgres -E utf8 но получил это:

The files belonging to this database system will be owned by user "atal421".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".

initdb: directory "/usr/local/var/postgres" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/usr/local/var/postgres" or run initdb
with an argument other than "/usr/local/var/postgres".

таким образом, я rm -rf папка пост-ГРЭС и выполнила его снова:

 initdb /usr/local/var/postgres -E utf8

это сказало, что все было хорошо:

Success. You can now start the database server using:

    postgres -D /usr/local/var/postgres

таким образом я выполнил ту команду и добрался:

postgres -D /usr/local/var/postgres


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

Теперь то, когда я смотрю на свой Монитор Действия I, видит 6 экземпляров postgress.

Как я фиксирую это?

73
задан 16.02.2013, 18:31

0 ответов

Теги

Похожие вопросы