小编Ada*_*amT的帖子

“致命:锁定文件“postmaster.pid”已经存在”

我刚刚通过以下方式重新安装了 postgres 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 …
Run Code Online (Sandbox Code Playgroud)

macbook database postgresql homebrew macos

87
推荐指数
4
解决办法
12万
查看次数

Homebrew postgres 在卸载、重新安装和重启后无法启动

我通过自制软件卸载并重新安装了 postgresql。它工作正常,直到我重新启动计算机。现在我正在尝试运行我的测试,但它们正在爆炸。我正在查看当前进程,但没有看到所有这些 postgres 实例正在运行。我想我必须打开postgres。我试过跑步

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Run Code Online (Sandbox Code Playgroud)

但这似乎没有任何作用(尽管它确实说server starting,这是错误的)

如何启动服务器?

更新。日志信息:

cat /usr/local/var/postgres/server.log 
postgres cannot access the server configuration file "/usr/local/var/postgres/postgresql.conf": No such file or directory
Run Code Online (Sandbox Code Playgroud)

谢谢

postgresql homebrew macos

4
推荐指数
1
解决办法
4248
查看次数

在 Lion 上升级了本地 git,现在呢?

我用 Lion 重新格式化了我的机器,它有这个默认版本的 git:

$ git --version
git version 1.7.7.5 (Apple Git-26)
Run Code Online (Sandbox Code Playgroud)

我决定升级 git 所以我做了:

$ brew install git
==> Downloading http://git-core.googlecode.com/files/git-1.7.10.4.tar.gz
######################################################################## 100.0%
==> make prefix=/usr/local/Cellar/git/1.7.10.4 CC=/usr/bin/clang CFLAGS=-Os -w -pipe -    march=native -Qunused-arguments LDFLAGS= install
==> make CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused-arguments LDFLAGS=
==> make clean 
==> Downloading http://git-core.googlecode.com/files/git-manpages-1.7.10.4.tar.gz
######################################################################## 100.0%
==> Downloading http://git-core.googlecode.com/files/git-htmldocs-1.7.10.4.tar.gz
######################################################################## 100.0%
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

The OS X keychain credential helper has been installed to:
  /usr/local/bin/git-credential-osxkeychain

The 'contrib' …
Run Code Online (Sandbox Code Playgroud)

upgrade git homebrew osx-lion

2
推荐指数
1
解决办法
1362
查看次数

标签 统计

homebrew ×3

macos ×2

postgresql ×2

database ×1

git ×1

macbook ×1

osx-lion ×1

upgrade ×1