我目前已经安装了一个在端口1486上运行的pgsql实例。我想把这个端口改成5433,我该怎么做?
发布于 2008-10-09 14:13:40
您的postgresql.conf文件中应该有一行内容如下:
port = 1486改变这一切。
根据您的安装选项,文件的位置可能会有所不同。在基于Debian的发行版上,它是/etc/postgresql/8.3/main/
在Windows上是C:\Program Files\PostgreSQL\9.3\data
不要忘记使用sudo service postgresql restart使更改生效。
发布于 2010-03-28 02:16:32
https://stackoverflow.com/questions/187438
复制相似问题