如何在Mac OS上重新分配端口号?

时间:2012-02-14 02:29:37

标签: macos postgresql terminal port

我最近在Mac OS上安装了PostgreSQL,并错误地将服务器分配给端口3000,我喜欢用它来运行其他东西。现在我无法使用sqlite3关闭该端口运行rails服务器,我收到错误通知我该地址已被使用。

如何释放此端口?当然,我可以在终端上写下这种效果。

1 个答案:

答案 0 :(得分:2)

只需更改行

即可
port = 3000

postgresql.conf中添加其他内容并重新启动服务器。更多details in the manual

相关问题